How to save collapse sections of the query window and save it like that

  • Hi,

    My manager would like it that when he collapses certain parts of the query and saves it, it will open that way; and not have it all expanded.

    Is there a way to do this?

    Thank you

  • Unfortunately SSMS does not offer this feature.  It might be worth looking into doing your database development in the full version of Visual Studio.  It does what you are asking for several different file types.

  • HI,

    and thanks for the reply.

    I do have a full version of VS, but am not familiar with how you do what you do in SSMS in there?

    Please let me know.

    Thank you

  • itmasterw 60042 wrote:

    HI, and thanks for the reply. I do have a full version of VS, but am not familiar with how you do what you do in SSMS in there? Please let me know. Thank you

    This functionality is not available in VS for .sql files. It is available for other file types, C#, for example.

    If you can use third party tools, take a look at SSMS Boost, which is an SSMS add-on. It facilitates the behaviour you desire, through the use of --region and --endregion comments.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply