![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Using SQL 2000, how can you combine multiple records into 1? The source data is varchar(255), the destination will be text. I need help with the select statement. |
#3
| |||
| |||
|
|
rdraider (rdraider (AT) sbcglobal (DOT) net) writes: Using SQL 2000, how can you combine multiple records into 1? The source data is varchar(255), the destination will be text. I need help with the select statement. SQL Server MVP Anith Sen as a couple of methods on http://www.projectdmx.com/tsql/rowconcatenate.aspx. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#4
| |||
| |||
|
|
Thanks for the info. My problem is the resulting data will be too large for varchar(8000). All these examples seem to use varchar(8000) I need to convert to a text datatype. I can concat multiple varchar fields from 1 record into text but the problem is how the source data is structured. The source data is from an app called 'Onyx' running SQL 6.5 (I'm naming names !!). I upgraded the SQL 6.5 to SQL 2000. I don't hav SQL 2005. |
|
I assume it was designed this way because SQL 6.5 largest data type was varchar(255) ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |