Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Generic paged data like MySQL LIMIT

By dion,

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.

Total article views: 115 | Views in the last 30 days: 1
Related Articles

sql syntax issue

Hi, I am getting error in my below sql statement Declare @sqlquery varchar(max) Set @sqlquer...


Perform a count and then another count

Hi, I have multiple users per account ie Acc A User1 User2 User3 Acc B User4 User5 User6...


How to Tune Queries

Hi All Following attachment is a sql plan of a query that i have to tune query is insert ...


Stored Procedure for paged data like MySQL LIMIT

The following code is intended to provide a server side solution for outputing data in pages given a...


Couldn''t replace text

Hi, I am new to SQL 2005. And I am doing a straigth select from a table. The query looks pretty ...


Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones