RiddleMeThis
MIS
Hi there,
I'm trying to insert a TAB into my output in SQL Server 2005 but it just represents it as a SPACE.
First I tried the following syntax with the TAB manually put in the string:
SELECT 'test1 test2'
And also using CHAR(9) like:
SELECT 'test1' + CHAR(9) + CHAR(9) + CHAR(9) + CHAR(9) + 'test2'
But neither work, the output I get in both cases just has spaces rather than tabs:
'test1 test2'
I've also tried doing it in the SSRS 2005 front end to no avail.
Any ideas?
I'm trying to insert a TAB into my output in SQL Server 2005 but it just represents it as a SPACE.
First I tried the following syntax with the TAB manually put in the string:
SELECT 'test1 test2'
And also using CHAR(9) like:
SELECT 'test1' + CHAR(9) + CHAR(9) + CHAR(9) + CHAR(9) + 'test2'
But neither work, the output I get in both cases just has spaces rather than tabs:
'test1 test2'
I've also tried doing it in the SSRS 2005 front end to no avail.
Any ideas?