Red Gate forums :: View topic - Lay Out SQL request
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt Previous Versions
SQL Prompt Previous Versions forum

Lay Out SQL request

Search in SQL Prompt Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
jamal



Joined: 20 Mar 2007
Posts: 36

PostPosted: Mon Feb 16, 2009 6:19 pm    Post subject: Lay Out SQL request Reply with quote

Can an option be added to keep BEGIN END blocks in line with their logical code? I like to see BEGIN and END directly below IF statements and loops like this:

IF x
BEGIN
<tab> --code here
END

and it seems Lay Out SQL enforces an automatic tab which makes it more difficult to find the end of the code block

IF x
<tab>BEGIN
<tab><tab> --code here
<tab>END
_________________
James
Back to top
View user's profile Send private message
Ben Pinchen



Joined: 28 Dec 2006
Posts: 157
Location: Red Gate

PostPosted: Thu Feb 19, 2009 3:07 pm    Post subject: Reply with quote

Thanks for the feedback. I've raised this as a feature request and logged it in the system. The SQL Prompt team will consider adding this extra option in a future version of the application. For your reference the feature request code is: SP-1662
Back to top
View user's profile Send private message
pburleson



Joined: 11 Aug 2006
Posts: 8
Location: Dallas, TX

PostPosted: Tue Mar 24, 2009 8:39 pm    Post subject: Reply with quote

I'd like to throw in a vote for this change as well. We're looking at using SQL Prompt to reformat our code and having BEGIN/END on the same tab stop is the IF/ELSE would be preferred.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
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