uniqueidentifier column
From: Fernando Chilvarguer (fernando_at_nospam-impex.com)
Date: 07/14/04
- Next message: Aaron W. West: "Re: Performance ideas - comparing first N chars of 2 TEXT columns"
- Previous message: Mischa Sandberg: "Re: Range query optimization help?"
- Next in thread: Knick: "uniqueidentifier column"
- Reply: Knick: "uniqueidentifier column"
- Reply: Hari Prasad: "Re: uniqueidentifier column"
- Reply: Greg Linwood: "Re: uniqueidentifier column"
- Reply: Joe Celko: "Re: uniqueidentifier column"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Jul 2004 21:00:18 -0700
I'm using a uniqueidentifier column as the "identity" primary key column for
a table.
How can I retrieve the value of that column after an insert (using NEWID())?
I tried something like:
"INSERT INTO TABLE........... SELECT @@Identity"
The @@Identity does not work in this case. It returns NULL
Thanks,
Fernando Chilvarguer
- Next message: Aaron W. West: "Re: Performance ideas - comparing first N chars of 2 TEXT columns"
- Previous message: Mischa Sandberg: "Re: Range query optimization help?"
- Next in thread: Knick: "uniqueidentifier column"
- Reply: Knick: "uniqueidentifier column"
- Reply: Hari Prasad: "Re: uniqueidentifier column"
- Reply: Greg Linwood: "Re: uniqueidentifier column"
- Reply: Joe Celko: "Re: uniqueidentifier column"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|