Link to home
Start Free TrialLog in
Avatar of rsrsm
rsrsm

asked on

Script to convert rows into column or vice-versa

I need command or script to convert rows into columns or vice-versa in MS SQL 2000. Any one has ideas or commands?
Avatar of Hilaire
Hilaire
Flag of France image

Should it be a new table or just a query to make a pivot table ?
Please post sample data, current shape + expected results.

With the information you have given so far, the best I can come with is
- issue a select * in QA
- copy output to an excel file
- use Excel rotate functionality
- change column names at will
- import xl file into a new table using DTS
ASKER CERTIFIED SOLUTION
Avatar of g0rath
g0rath

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial