SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Formatting exec statements

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
Formatting exec statements
Author Message
RobCrockett



Joined: 15 Aug 2008
Posts: 10
Country: United States

Post Formatting exec statements Reply with quote
Hi,

I would like to format EXEC statements all on one line, unless they exceed 120 characters. I would like to format longer EXEC statements with one parameter per line. Can SQL Assitant do that?
Tue Mar 17, 2009 2:26 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Reply with quote
Maximum line length and line wrapping options are defined at the formatting style level, not at the statement formatting rule level. You cannot choose to wrap EXEC lines after 120 characters and SELECT lines after 80.

Aside from that, to customize formatting specific to EXEC statement, use the EXEC formatting rule in one of T-SQL formatting styles, whichever you use. Position of procedure parameters is controlled parameter placeholders within that rule. If you specify them on the same line, they will appear on the same line then wrap as specified length in the rapping options for the style. If you specify them on separate lines, they will appear on separate lines.
Tue Mar 17, 2009 3:01 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.