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)
 skip to next line

Author  Topic 

js.reddy
Yak Posting Veteran

80 Posts

Posted - 2009-08-08 : 03:38:53
hi folks,

I need to display the text mater as following.

----------------------
Hello
How Are You
----------------------

I need to display the above text with single select query like
select 'Hello '+ 'How Are You'


madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-08-08 : 04:10:57
Change result mode to text (Press control+T)

then

select 'Hello '+char(13)+'How Are You'

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

waterduck
Aged Yak Warrior

982 Posts

Posted - 2009-08-08 : 15:08:45
PRINT 'Hello '+ 'How Are You'


Hope can help...but advise to wait pros with confirmation...
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-08-10 : 02:54:49
quote:
Originally posted by waterduck

PRINT 'Hello '+ 'How Are You'


Hope can help...but advise to wait pros with confirmation...


That will display in a single line

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -