| title | Change the Connection Associated with a Query | ||||
|---|---|---|---|---|---|
| ms.custom | seo-lt-2019 | ||||
| ms.date | 01/19/2017 | ||||
| ms.prod | sql | ||||
| ms.prod_service | sql-tools | ||||
| ms.reviewer | |||||
| ms.technology | ssms | ||||
| ms.topic | conceptual | ||||
| helpviewer_keywords |
|
||||
| ms.assetid | 7b8851b8-eccb-4e6c-944a-68fa90fc5870 | ||||
| author | markingmyname | ||||
| ms.author | maghan |
[!INCLUDEappliesto-ss-asdb-asdw-pdw-md] A query can be executed against several different servers or databases by changing the connection used by the query.
-
In Query Editor, right-click a blank area of Query Editor, point to Connection, and then click Change Connection.
-
In the Connect to Database Engine dialog box, provide the new connection information, and then click Connect.
Solution Explorer
Associate a Query with a Connection in a Project
View or Change the Properties of a Connection in a Project