First pass at fixing SQL Server 2000 pagination

This is an attempt to restore SQL Server 2000 pagination while reusing the existing local variables.
Ah, got it. If you could write a comment to that effect so that when I do another refactoring pass I don't break it, that's be awesome. Thanks :)