View previous topic :: View next topic |
Author |
Message |
crunch
Joined: 10 Nov 2004 Posts: 2
|
Posted: Thu Nov 18, 2004 10:19 am Post subject: How to get the newly inserted record ID in SQL Server 2000? |
|
|
Hi guys,
I have ASP page which inserts records in a SQL Server 2000 database. Is there a way to get the unique ID (ID column is identity and primary key) of the newly inserted database table row?
Thanks in advance |
|
Back to top |
|
|
paul
Joined: 11 Oct 2004 Posts: 128
|
Posted: Thu Nov 18, 2004 4:17 pm Post subject: |
|
|
Hi Crunch,
You can get the newly inserted identity column value with the following T-SQL statement:
Paul _________________ World Countries | Survival Skills |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|