First pass at fixing SQL Server 2000 pagination