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.
| Author |
Topic |
|
adonnell
Starting Member
4 Posts |
Posted - 2011-08-17 : 12:18:51
|
| I have a table with 75 columns and I want to take just the column names and insert them into rows of a different table. One row for each of the old column names, with the target column name being Attribute. it would be something likecolumns in original table: a b c d e f glooking for: AttributeabcdefgI was looking at pivot and unpivot but it looks like that includes the data in the original columns. I only want column names.Any help would be great! |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
adonnell
Starting Member
4 Posts |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|