pradeepaga
asked on
RowId In SQL Server
How can i get the "RowId" of a table in Sql Server?
sql server 2000 doesn't support rowID.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have a look here for the identity column implementation:
http://www.sql-server-performance.com/forum/topic.asp?TOPIC_ID=3385
http://www.sql-server-performance.com/forum/topic.asp?TOPIC_ID=3385
I agree that the identity method is usually the easiest way. If you don't already have an identity column on your table, you can always insert into a temp table and return the results. If you do already have an identity column on your table and you can't have a gap between the numbers, you could also create a UDF that joins back to your original table and sequence the records that way.
Brett
Brett