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
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979466
Message ID:
00979477
Views:
9
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform