Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8394871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:09:49+00:00 2026-06-09T20:09:49+00:00

I am looking into doing some efficient paging and found this link that says

  • 0

I am looking into doing some efficient paging and found this link that says the “Holy Grail” is the best approach.

http://www.sqlservercentral.com/articles/T-SQL/66030/

Is the table just being used as an example, or is it actually part of the solution. What I mean is how would you do this with a table that has many joins, same approach? Can someone post an example?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:09:51+00:00Added an answer on June 9, 2026 at 8:09 pm

    Table “[INFORMATION_SCHEMA].columns” is just being used as an example.

    I’d use the same approach for a table that has many joins. Just make sure you have proper indexes.

    “Holy Grial” solution just gives you paged results plus a column indicating the total of rows, without overhead. You can get the total of rows on another query.

    Be aware of the article conclusion’s:

    ….this approach to be best suited for smaller resultsets from complex
    queries where I/O is the primary bottleneck. Jeff Moden, Peso and
    others here have pointed out that with larger resultsets, the I/O cost
    you save is more than outweighed by the CPU cost.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking into JOIN, subqueries and other ways of doing this, but I
By looking into the Open JPA website i've found that i can log the
We're currently looking into doing some performance tweaking on a website which relies heavily
I was looking into the timsort algorithm for doing some sorting on my fairly
I am looking into the possibility of doing some mobile app development, firstly for
I'm looking into doing some development for the Azure platform. I don't need the
Not really an immediate source code question per se....but Im looking into doing some
I'm doing some work that involves inserting a batch of records into a Sql
I'm looking into using ftplib (and possibly ftputil ) for doing some automated FTP
I have been looking into this for some hours now and can't figure it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.