Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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)

REVISED Dynamic Crosstab Query

By Cade Bryant,

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: 746 | Views in the last 30 days: 1
 
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