Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save the SSMS Object Explorer servers?

Tags:

tsql

ssms

I use Microsoft SQL Server Management Studio a lot. Every time I'm starting the tool, I'll need to connect to a server. Every day I'll need to connect to the same 4 servers. Is there a ways to "save" the servers in a file, so that I don't need to connect them every time I restart the tool.

It would be great if I could save some SQL scripts save into that file as well. Is this possible?

like image 593
Kees C. Bakker Avatar asked Apr 13 '11 11:04

Kees C. Bakker


People also ask

How do I save a server in SSMS?

Under the "View" menu, select "Registered Servers", and a new panel will appear. You can save servers in "Local Server Groups" (which is under "Database Engine") by right-clicking and selecting "New Server Registration". You can also select "New Server Group" if you want to organize your servers into groups.

How do I save a SQL Server database?

To save a query: Use the Save command in the application toolbar. In the Save File As window, choose a name and a location to save your query.

How do I use SSMS Object Explorer?

As soon as you start SQL Server Management Studio (SSMS) the Object Explorer should open. If not then you can open it by one of the following ways: Pressing the shortcut key F8. From the menus select View > Object Explorer as shown below.

Where does SSMS stored registered servers?

saved in "C:\Users\<username>\AppData\Roaming\Microsoft\SQL Server Management Studio\13.0\". Now open SSMS 2016 and you should see all of your old connections from SSMS 2014.


1 Answers

Open "Registered Servers" from the "View" menu and persist them there?

like image 170
gbn Avatar answered Sep 30 '22 20:09

gbn