Larry Brister
asked on
SQL Select string together row data?
I need to build a string in SQL Server
It should be done in a UI but I'm not given that option and have been told to do it this way
So if I have a output table with two columns and x rows...and my output rows are
col1r1Data col2r1data
col1r2Data col2r2data
col1r3Data col2r3data
I can build this string
<td>col1r1Data </td><td>col2r1data</td><t d>col1r2Da ta </td><td>col2r2data</td>.. .etc...
It should be done in a UI but I'm not given that option and have been told to do it this way
So if I have a output table with two columns and x rows...and my output rows are
col1r1Data col2r1data
col1r2Data col2r2data
col1r3Data col2r3data
I can build this string
<td>col1r1Data </td><td>col2r1data</td><t
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Extremely elegant
ASKER
ScottPletcher
Watch for followup question
Watch for followup question
Setup
Open in new window
The scalar function
Open in new window
Then call it like thisOpen in new window