all groups > sql server programming > september 2005 > threads for sunday september 25
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Simple Query?
Posted by XXX at 9/25/2005 10:50:36 PM
Create table #X (A varchar(15), B varchar(15))
insert into #X select 'Hello', '4'
SELECT A,B FROM #X WHERE A IN ('Hello','Welcome')
will give me
'Hello', '4'
But what I really want is
'Hello', '4'
'Welcome', Null
Basically if there is anything in the IN clause not contained in th... more >>
Selecting the latest records based on two columns
Posted by McGeeky at 9/25/2005 10:01:14 PM
Please help!
How can I select the latest records from a table based on a date column and
a
sequence number within the date? For example, consider the data below - I
want
to select the latest rows from this table grouped by column A and B:
This is the table:
Id,A,B,Date,Sequence
g,1, 1,... more >>
Rows to columns *not* really a crosstab
Posted by Next at 9/25/2005 9:38:05 PM
Below is my schema and sample data :)
I have rows that represent a specific milestone for an alertID. There may be
several Milestones for each alertID.
This the result I need:
Row1 Row2 Row3 Row4
Col1
Col2
Col3
Col4
Col5
....
Can anyone help?
Thanks ... more >>
copying users between roles
Posted by Robert Kinesta at 9/25/2005 8:47:01 PM
I would like to copy all users currently from RoleA into RoleB. I know there
must be a nice way to script this. Any ideas?... more >>
Exec Proc with date parameter
Posted by K M Dhariwal at 9/25/2005 3:56:02 PM
Hi,
I have spent whole night to figure this out and right now i am hands up..
please help.
I have stored procedure (dsTPint_GLIntegrationRun) which have nested cursors
and cursors call external stored procedure to execute.
dsTPint_GLIntegrationRun have parameter of companyid which is datab... more >>
Newbie - Program
Posted by Don at 9/25/2005 11:49:01 AM
This is my first foray into MS SQL Server, so I am trying to get my feet wet
with a couple of things. One thing I am trying to do right now is fill in a
uniqueidentifier field I added to a table using the NEWID() function. In MS
Access, I would have cranked out a little VBA code that simply ... more >>
MSDE?
Posted by perspolis at 9/25/2005 10:53:37 AM
Hi all
I have a question about MSDE..
Can I use extended stored procedure with MSDE?or it can be used just with
SqlServer??
thanks
... more >>
The usage of ObjectProperty(id, 'CnstIsDeleteCascade')
Posted by Yi Chen at 9/25/2005 10:53:07 AM
Hi, I need to test if there is a ON DELETE CASCADE constraint set on a
table, and also the case for ON DELETE CASCADE SET DEFAULT and ON
DELETE CASCADE SET NULL.
I used the ObjectProperty(id, 'CnstIsDeleteCascade") to test the first
case and it works, but it seems this function always return 0... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Performance Monitor
Posted by Ed at 9/25/2005 7:54:01 AM
Hi,
I would like to learn more about the P. M. is there any good website that
I can look at? Also, when I open the P.M. and I add a counter called
"processer", the duration is 1:40, is that possible I can change the
durcation time?
THANKS
ed... more >>
granting public permissions to another role
Posted by Bobsie at 9/25/2005 7:36:03 AM
We need to revoke all insert/update/delete access from public. So this won't
affect users I wanted to create a new role and grant it all of these excess
permissions from public, then revoke the permissions from public. It looks
like there are thousands of grants that need to be revoked - can a... more >>
Create A/R distribution using IF...THEN or CASE
Posted by richardb at 9/25/2005 7:07:01 AM
I am trying to write a query in Transact-SQL to create a user view in my SQL
database. I am trying to populate columns for each "aging" category (30, 60,
90, etc), so the correct age receives the amount due, but other columns are
zero. However, I can't find the correct CASE or IF...THEN syntax... more >>
SQL Server 2005 vs. XML Web Services
Posted by Teeravee Sirinapasawasdee at 9/25/2005 3:21:01 AM
How can I publish stored procudures in SQL Server 2005 as XML Web Services?... more >>
|