>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