Get the automatic identity number when creating a new record

Get the automatic identity number when creating a new record

Post by Ahmed Roshd » Tue, 24 Jul 2001 20:10:07



Is there any way to get the automatically generated identity number when
inserting a new record using a stored procedure or any other means

Ahmed Roshdy

 
 
 

Get the automatic identity number when creating a new record

Post by Adi Coh » Tue, 24 Jul 2001 21:22:23



value that was used in the connection.   Notice that you might get the wrong
resutlst if the you inserted data to a table that had an insert trigger that
also insrted data to another table that has an identity column.  If you use
sql server 2000, then there are other function that you can use to solve

Adi

Quote:> Is there any way to get the automatically generated identity number when
> inserting a new record using a stored procedure or any other means

> Ahmed Roshdy