Hi friends,
I have a table structure like this in SQL sever 2000.
i want a stored procedure to transfer the data from "tblSurvey" table
to "tblRespondent" table.
Table - tblSurvey
----------------------------------------------------
columnHeading col1 col2 col3 col4 col5 |
----------------------------------------------------
Res1 12 11 13 111 888 |
Res2 1A 1B 1c 1d 8E |
..
..
--------------------------------------------------
I want to store this as a single column like this
Table - tblRespondent
----------------------
Respondent QuesID
----------------------
Res1 12
Res1 11
Res1 13
Res1 111
Res1 888
Res2 1A
Res2 1B
Res2 1c
Res2 Id
Res2 8E
------------------
any method is there to split the row data into column through stored
procedure
we can do this using recordset operation but it is very slow because
the table row has
more than 300 columns, I hope u understand my problem..
thanks
Arun