Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETAUTOINCVALUE for sqlserver
Message
 
 
À
07/12/2009 10:58:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01437880
Message ID:
01437888
Vues:
41
>>>Is there any equivalent function (GETAUTOINCVALUE) to get the autoinc value in MS SQL SERVER ?
>>
>>Yes, see SCOPE_IDENTITY, IDENT_CURRENT, and @@IDENTITY in BOL.
>>The SCOPE_IDENTITY() usually works the best unless you have some special requirements.
>
>Is is possible to pass this function together with the insert command in the SP , or I have to create a store procudure to call it ?

Yes, see my other reply, though I prefer using stored procedures.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform