SyntaxFix
Write A Post
Hire A Developer
Questions
as you found, this is the preferred sql server method:
SELECT * FROM ( SELECT *, ROW_NUMBER() OVER (ORDER BY name) as row FROM sys.databases ) a WHERE a.row > 5 and a.row <= 10