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 2000 Forums
 Transact-SQL (2000)
 sql server ( table value as column name)

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-07-12 : 11:17:52
MAYUR writes "i have table as below

ID NAME --COLUMN NAME
1 MAYUR
2 AMIT
3 JAY

AND I WANT OUTPUT AS

MAYUR AMIT JAY --THIS ARE NAME OF COLUMNS
1 2 3 --THIS ARE VALUES WITHIN COLUMNS"

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2006-07-12 : 11:46:15
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=6216

Help us help YOU!
Read this blog entry for more details: http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx

*need more coffee*
SELECT * FROM Users WHERE CLUE > 0
(0 row(s) affected)
Go to Top of Page
   

- Advertisement -