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)
 String Function

Author  Topic 

umapathy
Starting Member

24 Posts

Posted - 2007-04-19 : 06:50:51
Hi all

i have a string like nature.
i want to print this in the form of
natu
re

Reply

Regards
Umapathy










Umapathy

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-04-19 : 06:52:48
What are the rules for truncating the string?
We can't read minds and are tired of guessing.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-04-19 : 06:56:12
How about this?

print 'natu' + char(13) + char(10) + 're'


Or better yet:

print 'natu'
print 're'


Or in the grid:
Select 'natu'
Select 're'




Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -