Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope Identity Return from Insert?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00979466
Message ID:
00979477
Vues:
10
You may want to check new GETAUTOINCVALUE() finction in VFP9.

>
>With VFP9, what is the best way to get back the Identity column value after an insert? Right now I have the below which does not return the autonumber column:
>
>
>OleDbDataAdapter insAdapter = new OleDbDataAdapter(
>	"Select MyCol From MyTable Where 1=0" ,this._dataConn );
>OleDbCommandBuilder insBuilder = new OleDbCommandBuilder( insAdapter );
>int insOk = insAdapter.Update( myDataSet.Tables["MyTable"] ); //returns 1
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform