Stored procedure to create crosstabs; extensive documentation on parameters inside file.

Click the download button for StoredProcedure_CrossTab.sql... Download Code