creating a stored procedure for Dynamic Pivot table

,Thanks for the intuitive article Converting Rows to Columns – PIVOT. I'd like know if the aspect, 'Bringing Dynamism to the PIVOT' can be really applied as a Stored Procedure. Thanks

more ▼

asked Jun 16, 2015 at 04:15 PM in Default

avatar image

1 1 2

DO you have a link to the article you are referring to?

Jun 17, 2015 at 07:15 AM Kev Riley ♦♦

I much prefer cross tabs and their dynamic counterpart to PIVOT. I find the syntax far less obtuse and there is even a slight performance benefit. http://www.sqlservercentral.com/articles/T-SQL/63681/ and the dynamic version http://www.sqlservercentral.com/articles/Crosstab/65048/

Jun 17, 2015 at 08:56 PM seanlange
(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Jun 16, 2015 at 04:15 PM

Seen: 417 times

Last Updated: Jun 17, 2015 at 08:56 PM

Copyright 2018 Redgate Software. Privacy Policy