Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having identity crisis!
Message
From
30/09/1999 10:01:12
 
 
To
30/09/1999 09:55:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00270941
Message ID:
00271031
Views:
25
>Hi Tom ----
>
>Ian proposed @@IDENTITY, which is the optimal way of getting the latest ID, but that doesn't always work. Another way would be two open two connections to the table. Save on the first connection, then requery the table with the second connection and get the key that way.
>

John,

How would you know which was the record ou had just added on the second connection? Would you need another key made up from the other fields?

In what circumstances does @@IDENTITY not work? - I ask as its been ages now since I was lucky enough to do anything with SQL Server!
regards

Ian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform