SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Generic paged data like MySQL LIMIT

By dion,

Total article views: 81 | Views in the last 30 days: 1

This works, however code is creating a live temp_1 table in the database instead of using a #temp_1 temporary table because is just would not work.

The next idea I had was to use a unique table name per connection for temp_1, but I would really rather use temporary tables.

I am hoping some SQL guru's can suggest some improvements to this script.

By dion,

Total article views: 81 | Views in the last 30 days: 1
Your response
 
 
Related tags

Miscellaneous    
T-SQL Aids    
 
 
Contribute

Free registration required...

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Login (existing users)

Login

Email:   Password:   Remember me: Forgotten your password?

Register (new users)

Register

Email:   Password:
Confirm:

Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

Steve Jones
Editor, SQLServerCentral.com