Red Gate forums :: View topic - INSERT - SELECT formatting issues w/ SQL Prompt 6.x
Return to www.red-gate.com RSS Feed Available

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

INSERT - SELECT formatting issues w/ SQL Prompt 6.x

Search in SQL Prompt 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
paschott



Joined: 10 May 2006
Posts: 64

PostPosted: Fri Jun 06, 2014 6:57 pm    Post subject: INSERT - SELECT formatting issues w/ SQL Prompt 6.x Reply with quote

I'm trying to format my INSERT / SELECT code and when I use CTRL+K+Y, my SELECT statement gets indented under the INSERT like so:

Code:

INSERT   dbo.MyTable
      ( MyTableName
      , Description
      )
      SELECT   '' AS MyTableName
           , '' AS Description


I would normally expect the SELECT portion to align with the INSERT, but can't seem to find the formatting option that would do this in SQL Prompt. Can anyone point me in the right direction or does this need to be a new feature request?
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 219
Location: Red Gate Software

PostPosted: Mon Jun 09, 2014 11:12 am    Post subject: Reply with quote

Hi Peter,

We've updated the beta to format SELECT/INSERT like this, to get this build see our forum post here.

Thanks,
Aaron.
Back to top
View user's profile Send private message
paschott



Joined: 10 May 2006
Posts: 64

PostPosted: Mon Jun 09, 2014 5:28 pm    Post subject: Reply with quote

Thanks, Aaron. Downloading the updated beta now.
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 219
Location: Red Gate Software

PostPosted: Mon Jun 23, 2014 3:11 pm    Post subject: Reply with quote

Hi Peter,

We've moved this to an option in the latest beta (it's off by default so as not to affect anyone who was expecting the old style as happened with Jim) which can be found under Format->Data statements->Align SELECT with INSERT
Back to top
View user's profile Send private message
paschott



Joined: 10 May 2006
Posts: 64

PostPosted: Mon Jun 23, 2014 4:49 pm    Post subject: Reply with quote

Thanks, Aaron. I was kind of expecting it to be an option because of something like this. I appreciate having the choice. Smile
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