Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL commands not executing
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2000
Application:
Desktop
Divers
Thread ID:
01381043
Message ID:
01381444
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform