This does not display more than 10 rows from the able, varchar(2000) is big enough to bring more rows, where might the problem mbe?
Declare @.ColList varchar(2000)
Declare @.CrLf varchar(10)
Select @.CrLf=Char(13) + Char(10)
Select @.ColList = COALESCE(RTRIM(LTRIM(@.ColList)) + ', ' + @.CrLf, '') + MyName From MyTable
Select @.ColList
Did you have any SET ROWCOUNT prior to running this SQL> I ran it on my machine and it worked fine for me.|||If you are using Query Analyzer to execute the query, please go to Tools menu->Options->switch to Results tab->set the 'Maximum characters per column' to max allowed value 8192, then try again.
If you're using Management Studio and you have set to return result as text, please go to Tools->Options->Query Results->SQL Server->Results to Text->set the 'Maximum number of characters displayed in each column' to 8192
|||Thats right. I had changed mine to 1200 sometime back.
No comments:
Post a Comment