Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return the autoinc field when inserted in SQL ser
Message
 
To
11/05/2006 04:57:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01120919
Message ID:
01120924
Views:
17
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform