tags:

views:

51

answers:

1
SELECT  DateErrored
FROM     (SELECT Category, ROW_NUMBER  (Partition by dateerrored ORDER BY category DESC)AS Row FROM AspErrors)
            AS LogWithRowNumbers
WHERE  Row >= 1 AND Row <= 10
+9  A: 

Change ROW_NUMBER to ROW_NUMBER() OVER.

Link to documentation.

Adam Bernier
yup, that would do it (unless he's running sql server 2000)
DForck42
im running sql server 2008
Will