Link to home
Start Free TrialLog in
Avatar of jptrue
jptrue

asked on

SQL Server Management Studio - Automatically Connect on Startup

I am trying to get the Object Explorer in Microsoft SQL Server Management Studio 2005 to automatically connect to a server on startup.
I have been able to get a query window to connect using the startup options:
"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWb.exe"  -nosplash -S myServer -d myDatabase -U myUser -P myPassword
However, I am really looking to have the Object Explorer automatically connect.

Any help would be greatly appreciated!
ASKER CERTIFIED SOLUTION
Avatar of rboyd56
rboyd56

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Admin_IT
Admin_IT

From this webpage: http://www.databasejournal.com/features/mssql/article.php/3635126

Registered Servers Panel

Database server connections can be saved and organized in the Registered Servers panel. Once a server is registered, it can be managed and displayed in the Object Explorer panel. Below are the steps to create a new registration;

1.  Click the Database Engine icon. (The yellow cylinder under the words Registered Servers)

2.  Right click Database Engine inside the Registered Servers panel.

3.  Select New, Server Registration.

4.  Enter the server and connection information.

5.  Save

The other option listed under New was to create a Sever Group. Groups allow a collection of servers to be organized inside a common folder.

Right clicking on the server once it is registered allows you to Start and Stop the server. In addition, its Configuration Manager can be invoked.

Double clicking the new registration will connect the Management Studio to the database server and present it in the Object Explorer panel.