Hi,
Unfortunately in 2000 rownumber concept is not available while you retrieve the data..So you need to create a temp table with identity column, dump the result set into that table and retrieve from that temptable...
Create table #tmptbl (idcolumn int identity (1,1),....<column list>)
insert into #tmptbl select * from <maintable>
select * from #tmptbl -- where idcolumn contains the row numbers....
where as in 2005 it is straightforward..
select row_number() Over (order by <column> desc) as rownumber,<column list> from <tablename>
Thanks,
Narchand