Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return GUID key auto-generated in SQL Server
Message
De
20/06/2004 14:15:04
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
20/06/2004 13:32:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00915487
Message ID:
00915500
Vues:
10
Dragan,

Very interesting. I played with this a little on the database I use (Sybase ASA) and the GUID is stored in a binary(16) data type. @@identity returns 0 instead of null. Doesn't help much.


>>Michael
>>
>>Select @@identity
>
>Doesn't work, returns null if you have an uniqueidentifier column but don't have an identity column. Try this:
>
create table dum (bz uniqueidentifier, c varchar(10))
>insert into dum (c) values ('zz')
>select @@identity
>I'm getting a null returned (MSDE 2000).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform