XTAB - CROSSTAB UTILITY

sp_XTAB (prototype) produces pivoted (crosstab) views/output with a minimum of fuss.No messing with code, just tell XTAB what you want to pivot.Tested to 764 pivoted columns, XTAB can generate up to 63000 characters of dynamic sql. Example (deliberately over-simplified)----------------------updated 27 January 2004Use NorthwindEXEC sp_XTAB 'Northwind','xtEMPL_COUNTRY','Orders','EmployeeID','ShipCountry', '', 'OrderID','COUNT','NULL', '', 'SELECT xtEMPL_COUNTRY.* FROM xtEMPL_COUNTRY' -- Include optional […]

2004-01-24

347 reads

Blogs

All the signs were there, but we didn’t understand them: an essay on gatekeeping in IT

By

This is the first in a series of posts about gatekeeping in Information Technology...

Investigating Azure Databricks

By

At SQL Saturday #884 – Pensacola, I dropped into Rodney Ladrum’s session on Azure...

Read the latest Blogs

Forums

The AI Manager

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The AI Manager

Convert smallint to Date

By PJ_SQL

Hello! I have column in SQL 2012 DB of datatype smallint. Could you please...

Managed Instance Error Creating Recurring Schedule - BUG???

By DBADave

When we try to create a SQL Server Agent job schedule that has a...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers