October 15, 2008 at 1:44 am
help me to select ROW_NUMBER in sql server 2000
October 15, 2008 at 2:13 am
there is no row_number () in sql 2000.
"Keep Trying"
October 15, 2008 at 4:09 am
Miss Qureshi (10/15/2008)
help me to select ROW_NUMBER in sql server 2000
Why do you want to have row_number?
Do you want to simply generate serial no for the recordset?
If so, do this numbering in the front end application if you use
Failing to plan is Planning to fail
October 15, 2008 at 1:46 pm
Hello,
Another way to have a row number is to use the alter table command and add a rowId int identity field to the table ( unless it already has an identity field ).
When you add the rowId column, it will create the column and populate it with a row number.
like :
alter table yourTableName
add rowId int identity
Regards,
Terry
August 21, 2010 at 1:07 pm
I disagree with the idea of NOT using an IDENTITY for such a purpose if it's on a Temp Table.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2011 at 10:29 am
i usually just place what is needed into a temp table as below:
select
RowNumber = identity(int,1,1)
,Column_1
,Column_2
into #im_temp0
from <tableName>
November 29, 2016 at 4:29 am
This was removed by the editor as SPAM
April 4, 2017 at 3:38 pm
This was removed by the editor as SPAM
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply