Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to generate dynamic column using pivot function in sql server 2008 R2.
means i have to generate 31 column for january month and 28 or 29 column for feburary month(as per days in months)
Posted
Comments
Tomas Takac 5-Jan-16 9:11am    
You need to use dynamic SQL.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900