Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 COLUMN DYNAMICALLY

Author  Topic 

vipinjha123
Starting Member

45 Posts

Posted - 2012-05-09 : 03:12:39
Dear all.

i have one report in which column is month like

project MAY-12 APR-12

A 10 12

B 20 25


WHERE COLUMN IS DYNAMIC

PLEASE SUGGSET


REGARDS,

VIPIN JHA

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-05-09 : 04:12:05
what is your question ?

for dynamic column you have to use Dynamic SQL. Read this
http://www.sommarskog.se/dynamic_sql.html


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -