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
Titre:
Scope Identity Return from Insert?
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00979466
Message ID:
00979466
Vues:
40
Memory is hazy...

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
Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform