How to: Connect to a Database from Server Explorer
The Visual Database Tools allow you to make changes to an existing database with Table Designer or Database Diagram Designer, and run queries with Query and View Designer. In order to access these features, you must first establish a connection to an existing data source.
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see.
To connect to a database from Server Explorer
From the View menu, choose Server Explorer.
In Server Explorer right-click the Data Connections node and choose Add Connection.
If this is the first connection you make, the Choose Data Source dialog box appears. In this dialog box under Data Source choose the kind of data source to which you are connecting, and then under Data Provider choose the provider appropriate for the application you are working with. Finally click Continue.
In the Add Connection dialog box enter the requested information.
This information is different for each provider. For more help on this tab, click the Help icon at the top of the dialog box or press F1 with the dialog box selected.
Click the Advanced button to bring up a list of properties where you can change settings for the selected provider.
Click Test Connection to check the connection without closing the dialog box. This way you can make adjustments to the settings if the connection does not succeed.
Your connection appears in Server Explorer under the Data Connections node.