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

REVISED Dynamic Crosstab Query

By Cade Bryant, 2013/06/20

Here is a revised version of the crosstab query I submitted last week.  This new version avoids the WHILE loop (which was used in my pervious version) and is thus COMPLETELY SET-ORIENTED for better performance.

Total article views: 712 | Views in the last 30 days: 4
 
Related Articles
FORUM

Row Versioning

Row Versioning

FORUM

SQLNCLI version

SQLNCLI version

FORUM

SELECT @@VERSION

SELECT @@VERSION

FORUM

Database Versioning

Stored Procedrue and Tables versioning

FORUM

master..sysdatabases version = 0

master..sysdatabases version = 0

Tags
miscellaneous    
t-sql    
 
Contribute

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
Editor, SQLServerCentral.com

Already a member? Jump in:

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