Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

code outlining in SQL Server Management Studio (SSMS)

 
   Database Forums (Home) -> Programming RSS
Next:  Basic Database Design Question  
Author Message
jeljeljel

External


Since: Sep 12, 2007
Posts: 2



(Msg. 1) Posted: Wed Sep 12, 2007 7:30 am
Post subject: code outlining in SQL Server Management Studio (SSMS)
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Is there a way to outline code similar to what is available via Visual
Studio? Interestingly, in Visual Studio if I toggle outlining on some
code blocks of a T-SQL statement and then copy/paste that into SSMS,
the outlining remains. However I cannot figure out how to outline
from w/in SSMS. The VS shortcut keys don't work and I can't find the
feature in the menus anywhere. The online books indicate it is
available however (although they don't describe how to do it).

Does anyone know how to do this?

Thanks,
John

 >> Stay informed about: code outlining in SQL Server Management Studio (SSMS) 
Back to top
Login to vote
Razvan Socol

External


Since: Jun 19, 2007
Posts: 3



(Msg. 2) Posted: Thu Sep 13, 2007 5:01 am
Post subject: Re: code outlining in SQL Server Management Studio (SSMS) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello, jeljeljel

SQL Server 2005 Management Studio does not have a feature to
automatically indent statements according to their significance, like
Visual Studio. One feature that might help is to select a portion of
code and increase/decrease indent with Tab / Shift+Tab. The Query
Designer tries to format the code (only one DML statement), but the
result looks very bad to me.

Razvan

 >> Stay informed about: code outlining in SQL Server Management Studio (SSMS) 
Back to top
Login to vote
jeljeljel

External


Since: Sep 12, 2007
Posts: 2



(Msg. 3) Posted: Thu Sep 13, 2007 6:46 am
Post subject: Re: code outlining in SQL Server Management Studio (SSMS) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sep 13, 2:43 am, Razvan Socol wrote:
> Hello, jeljeljel
>
> SQL Server 2005 Management Studio does not have a feature to
> automatically indent statements according to their significance, like
> Visual Studio. One feature that might help is to select a portion of
> code and increase/decrease indent with Tab / Shift+Tab. The Query
> Designer tries to format the code (only one DML statement), but the
> result looks very bad to me.
>
> Razvan

Thanks for the tip. When I mention code outlining I am referring to
the ability VS has to collapse/expand blocks of sql code. So in VS if
you highlight lines of sql that has been opened from server explorer
and type Ctrl-M, Ctrl-H, it will make that selection a "block" and put
a control that enables you to hide/show that block.

I can't find the same thing in SSMS although there appears to be
support for it as you can copy paste sql code that has "hidable"
blocks from VS to SSMS and the blocks are preserved.
 >> Stay informed about: code outlining in SQL Server Management Studio (SSMS) 
Back to top
Login to vote
Razvan Socol

External


Since: Jun 19, 2007
Posts: 3



(Msg. 4) Posted: Thu Sep 13, 2007 8:15 am
Post subject: Re: code outlining in SQL Server Management Studio (SSMS) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sep 13, 4:46 pm, jeljeljel wrote:
> Thanks for the tip. When I mention code outlining I am referring to
> the ability VS has to collapse/expand blocks of sql code. [...]

Oh... I see. Sorry I didn't understand it the first time.

> I can't find the same thing in SSMS although there appears to be
> support for it as you can copy paste sql code that has "hidable"
> blocks from VS to SSMS and the blocks are preserved.

Indeed, I see that the blocks are preserved (they can be expanded/
collapsed), but there is no option for creating new blocks, toogle all
outlining, stop outlining, etc).
Maybe you should request this feature on https://connect.microsoft.com/SQLServer/Feedback

Razvan
 >> Stay informed about: code outlining in SQL Server Management Studio (SSMS) 
Back to top
Login to vote
Browser Synch

External


Since: Mar 29, 2011
Posts: 1



(Msg. 5) Posted: Tue Mar 29, 2011 3:25 am
Post subject: Re: Re: code outlining in SQL Server Management Studio (SSMS) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Please up-vote on Microsoft Connect Site

https://connect.microsoft.com/SQLServer/feedback/details/654098/collap...expand-


> On Wednesday, September 12, 2007 10:30 AM jeljeljel wrote:

> Is there a way to outline code similar to what is available via Visual
> Studio? Interestingly, in Visual Studio if I toggle outlining on some
> code blocks of a T-SQL statement and then copy/paste that into SSMS,
> the outlining remains. However I cannot figure out how to outline
> from w/in SSMS. The VS shortcut keys don't work and I can't find the
> feature in the menus anywhere. The online books indicate it is
> available however (although they don't describe how to do it).
>
> Does anyone know how to do this?
>
> Thanks,
> John


>> On Thursday, September 13, 2007 3:43 AM Razvan Socol wrote:

>> Hello, jeljeljel
>>
>> SQL Server 2005 Management Studio does not have a feature to
>> automatically indent statements according to their significance, like
>> Visual Studio. One feature that might help is to select a portion of
>> code and increase/decrease indent with Tab / Shift+Tab. The Query
>> Designer tries to format the code (only one DML statement), but the
>> result looks very bad to me.
>>
>> Razvan


>>> On Thursday, September 13, 2007 9:46 AM jeljeljel wrote:

>>> On Sep 13, 2:43 am, Razvan Socol wrote:
>>>
>>> Thanks for the tip. When I mention code outlining I am referring to
>>> the ability VS has to collapse/expand blocks of sql code. So in VS if
>>> you highlight lines of sql that has been opened from server explorer
>>> and type Ctrl-M, Ctrl-H, it will make that selection a "block" and put
>>> a control that enables you to hide/show that block.
>>>
>>> I can't find the same thing in SSMS although there appears to be
>>> support for it as you can copy paste sql code that has "hidable"
>>> blocks from VS to SSMS and the blocks are preserved.


>>>> On Thursday, September 13, 2007 11:15 AM Razvan Socol wrote:

>>>> On Sep 13, 4:46 pm, jeljeljel wrote:
>>>>
>>>> Oh... I see. Sorry I didn't understand it the first time.
>>>>
>>>>
>>>> Indeed, I see that the blocks are preserved (they can be expanded/
>>>> collapsed), but there is no option for creating new blocks, toogle all
>>>> outlining, stop outlining, etc).
>>>> Maybe you should request this feature on https://connect.microsoft.com/SQLServer/Feedback
>>>>
>>>> Razvan
 >> Stay informed about: code outlining in SQL Server Management Studio (SSMS) 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQL Server Management Studio hangs - I'm having a problem with SQL Server management Studio hanging. When I open the program, the screen (with all the normal menus and object explorer) displays, but my normal login screen never shows up. If I click on any of the menus, even the close..

Stored Procedures NOT appearing in SQL Server Management S.. - Hi. Please forgive me, but I'm still getting used SQL Server 2005. When I create stored procedures under Databases-MyDatabase-Programmability-Stored Procedures, parse-them and save them, they don't appear when I refresh the Stored Procedures window!...

management studio question - Is there a way to get my query list sorted by alpha!!! and can sub folders be reated? -- (i''ll be asking a lot of these, but I find C# totally way cooler than vb and there''s no go''n back!!!) thanks (as always) kes

white circle in Management Studio servers ? - What does it mean when my servers have a white circle instead of a green circle with a white arrow in it in SQL Server Management Studio? My dbs are 2000. Thanks

2005 management studio connect performance - Hello. I'm trying to use SQL Server 2005 Management Studio to do some of the work I've done in SQL Server 2000. Is it normal for the 2005 connection to time out after 15 seconds? I found a way to change the connection timeout to 60 seconds, and then it ...
   Database Forums (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]