Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 row_number

Author  Topic 

trouble2
Constraint Violating Yak Guru

267 Posts

Posted - 2010-12-16 : 08:08:52
I'm trying to do this, but I guess the code is to new for SQL 2000, so what should I change:

SELECT
row_number() over (order by MAX(HeadlineDate)) as Number,

The secret to creativity is knowing how to hide your sources. (Einstein)

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-12-16 : 08:43:46
ROW_NUMBER() is known in SQL Server 2005 and above...
Maybe you get an idea here but I don't know your problem that you need a solution for:
http://social.msdn.microsoft.com/forums/en-US/transactsql/thread/13daeb85-da43-4166-b188-595a4a5d5282/


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -