Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope Identity Return from Insert?
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Scope Identity Return from Insert?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979466
Message ID:
00979466
Views:
41
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.
Next
Reply
Map
View

Click here to load this message in the networking platform