Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manually rename tabs in SSMS

I'm always getting confused as to which tab is which in SQL Server Management Studio 2008 R2. I don't find the default naming scheme of tabs very intuitive. Is there a way I can manually rename them?

like image 995
Ben Avatar asked Jun 04 '12 14:06

Ben


People also ask

How do I rename a table in SQL Server management studio?

Using SQL Server Management Studio. To rename a table. In Object Explorer, right-click the table you want to rename and choose Design from the shortcut menu. From the View menu, choose Properties.

How do I change a SQL query window's tab name?

In SSMS, how do I change a SQL query window's tab name? If you open your options screen and set the following flags under Text Editor > Editor Tab and Status Bar > Tab Text: Then save the query as something simple you may see the results you want.

What are the editor tabs and status bar in SSMS?

Editor Tabs and the Status Bar in SSMS display a lot of useful information such as the server name, database name, login name and more. Unfortunately the editor tabs are just much too small, particularly with multiple tabs open as is often the case.

How to modify basic settings in SSMS from the Tools menu?

This keyboard shortcut works with any document window. This section describes how to modify some basic settings in SSMS from the Tools menu. To modify the highlighted toolbar, select Tools > Customize: To change the font, select Tools > Options > Fonts and Colors: Startup options determine what your workspace looks like when you first open SSMS.


3 Answers

If you open your options screen and set the following flags under Text Editor > Editor Tab and Status Bar > Tab Text:

Include database name: False
Include file name:     True
Include login name:    False
Include server name:   False

Then save the query as something simple you may see the results you want.

Set these options

enter image description here

like image 121
THE JOATMON Avatar answered Oct 05 '22 01:10

THE JOATMON


You can manually rename tabs in SSMS with my Tabs Studio extension.

Right click on a tab and select Set SQL comment:

enter image description here

Type tab description:

enter image description here

And the comment will be added to the tab title:

enter image description here

If you want to completely replace the tab title with your custom name, in SQLComment add-in options change Transform replacement from default $_ ${SQLComment} to ${SQLComment}:

enter image description here

And the tab name will be fully replaced with your description:

enter image description here

like image 31
Sergey Vlasov Avatar answered Oct 05 '22 00:10

Sergey Vlasov


then don't use tabs, switch to window view:

from the menu:
    tools - options
        in the dialog box, environment - general:
            click on the "MDI" environment radio button

I fought with the tabs and gave up, this works better for me. the tabs just show the first few characters, which ends up being the beginning of the database name, which was usless for me. You can use menu - "window" to see a list of your windows.

like image 34
KM. Avatar answered Oct 05 '22 01:10

KM.