Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select @@IDENTITY
Message
De
29/08/2006 01:23:22
 
 
À
28/08/2006 13:16:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Divers
Thread ID:
01149086
Message ID:
01149253
Vues:
6
This message has been marked as a message which has helped to the initial question of the thread.
In addition to previous answers - if you go to GUID way, you should generate it by yourself, in client app, or call a stored procedure that returns a GUID from SQL Server, then use that GUID as PK. IOW, you should enter your PK by yourself, not use a column default value in MSSQL.

>Why the following returns NULL value?
>
>INSERT INTO (...) VALUES (...)
>SELECT @@IDENTITY
>
>P.S.: The UniqueIdentifier is correctly generated.
Grigore Dolghin
Class Software.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform