Possible Duplicate:
SQL Server ROW_NUMBER() on SQL Server 2000?
How do I return a row and an ascending counter as a result set?
The function Row_number() is not known in MS SQL 2000.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a variable table with an identity column and insert the results into it: