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)
 Split a long SQL statement into a few line for eas

Author  Topic 

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2009-11-05 : 10:54:29
Very often, I need to split a long SQL statement into a few line for easier reading.
Is there a function, store procedure or third party tool can do this job?
Using it, I can pass a long SQL statement as one string, setup the lenth of line and will get a readable SQL statement.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-11-05 : 10:58:56
http://www.dpriver.com/pp/sqlformat.htm


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-11-06 : 03:06:23
or
www.sqlinform.com

Madhivanan

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

- Advertisement -