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.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Max Data

Author  Topic 

ranganath
Posting Yak Master

209 Posts

Posted - 2007-09-22 : 03:42:49
Hi

Iam working on Sqlserver2000.

I have a problem

Iam getting data with comma concatination. which is more than 8000bytes.
but sql2000 varchar Max(8000).

so how to get Data more than 8000 bytes

plz help me.

Kristen
Test

22859 Posts

Posted - 2007-09-22 : 03:45:54
Are you trying to concatenate data from multiple rows to form a single comma-delimited value?

e.g.

DECLARE @strResult varchar(8000)

SELECT @strResult = COALESCE(@strResult+',', '') + MyColumn
FROM MyTable

SELECT [Result] = @strResult

Kristen
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-09-22 : 22:47:02
Use text data type.
Go to Top of Page
   

- Advertisement -