Link to home
Start Free TrialLog in
Avatar of pradeepaga
pradeepaga

asked on

RowId In SQL Server

How can i get the "RowId" of a table in Sql Server?
Avatar of ill
ill
Flag of Slovakia image

sql server 2000 doesn't support rowID.
ASKER CERTIFIED SOLUTION
Avatar of danblake
danblake

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of danblake
danblake

Have a look here for the identity column implementation:
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