Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having identity crisis!
Message
From
30/09/1999 09:37:50
 
 
To
30/09/1999 06:56:34
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00270941
Message ID:
00271006
Views:
40
Tom,

Isn't there a variable in SQL Server that gets set to contain the value of the last auto created Id field? - @@IDENTITY ?? or something similar?

You can query SQL Server to return this id and then use it for your child records:

SQLEXEC( lnHandle, 'SELECT @@IDENTITY AS Id', 'mycurs')

and then look at mycurs.id

HTH
regards

Ian
Previous
Reply
Map
View

Click here to load this message in the networking platform