Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL commands not executing
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Application:
Desktop
Miscellaneous
Thread ID:
01381043
Message ID:
01381444
Views:
37
>If I remember correctly, @@IDENTITY doesn't apply to GUIDs, right? I am using uniqueidentifiers....
>

No, it doesn't apply. You can create new GUID with NewID()

Also it's much better and safer to use SCOPE_IDENTITY() to get the newly created ID.

>>We have an identity column on every table and use @@IDENTITY to check inserts:
>>
>>http://www.kamath.com/tutorials/tut007_identity.asp
>>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform