Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return the autoinc field when inserted in SQL ser
Message
 
À
11/05/2006 04:57:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01120919
Message ID:
01120924
Vues:
22
>How to return the autoinc field from sql server.
>I think the @@identity should do the work but am confused with the insertrefreshcmd.
>Rajesh
*** I suppose you use CursorAdapter
*** Let's say the identity column in your table is named ID
this.InsertRefreshCmd          = [SELECT Id FROM MyTable WHERE Id = @@IDENTITY]
this.InsertCMDRefreshFieldList = [Id]
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform