Review this topic to learn about open database connections in Toad.
For information about switching the current connection in Toad, see Switching Connections in Toad.
In Toad, an open connection in the Connection/Navigation Manager represents one or more actual connections to the database. When you open a database connection in Toad:
Toad also creates a separate database connection for each Editor (the first time you execute a statement) and for each Data tab in the Database Explorer (the first time you select the tab and query data).
The connection associated with the window (or tab) remains open until you close the window. If a window has an associated connection, but a statement is not currently executing, the connection is in an inactive state.
To view information for an open connection
To view the number of actual database connections that exist for a Toad connection, including the number of active connections, place the cursor over the connection in the Connection/Navigation Manager pane or in the connection drop-down list.
To use the Background Processes pane
To cancel statement execution, use the Background Processes pane.
Note: It is recommended that you cancel only your own processes, because terminating Toad activities could cause unexpected behavior.
You can instruct Toad to share an open connection among windows. In this way, the Editor windows and Data tabs can share the same connection when the connection is inactive.
To share a database connection among windows in Toad
Clear the checkbox for the Use individual connection for each open editor option.
When this option is not selected, Toad attempts to use a single connection for any new windows or query execution. For example, if you share a database connection, you can execute a query in the Editor, execute another query in a new Editor, and then select the Data tab from the same connection.
If the single connection is in use when Toad attempts to execute it, the following occurs:
Note: Although you can share a database connection, any commits apply to the selected window only.
You can create a new connection, or connect to an existing connection from the Create New Connection window. See Troubleshoot SQL Server® Issues for more information about troubleshooting connection issues.
Note: For SQL Azure connections:
Click on the toolbar (ALT+F+N).
Review the following for additional information:
Login Tab | Description |
Server name |
Enter the name of the server to use when connecting. Click to display any servers running SQL Server that are currently active on the network. Notes:
|
Authentication |
Select the type of authentication to use for this connection. You can connect to an Azure SQL database with Active Directory authentication. Client configuration is required. See https:// docs.microsoft.com/en-us/azure/sql-database/sql-database-aad-authentication-configure#configure-your-client-computers Note: You cannot create a SQL Azure connection using Windows Authentication. |
Password |
Enter the password to use when connecting. Tip: After connecting, you can set a master password to further secure your connection in Tools | Options| Environment | Security. |
Category |
Select or create a category if you want to color code Editor tabs for a specific connection. This can help differentiate between development and production databases. You can also set an option to color code the Object Explorer pane and object editor windows (Create, Alter, Drop, etc.). |
Encrypt connection |
Select this option to enable encryption for the current connection provided that the certificate has been already installed on the server. |
Advanced Tab | Description |
Network protocol |
Select one of the following:
|
Parameter Name/Value |
You can add parameters to the connection. Toad includes the Application Name parameter with value Toad for SQL Server by default. |
Click Connect to save the connection and immediately connect to the database.
or
Click Save to save the connection without connecting to the database.
Tip: Connections are stored in the connections.xml file and can be found by clicking the Application Data Directory link in Help | About.
To import connections (including Central Management Server connections)
Specify the location where the connections currently reside.
Note: Review the following for additional information on CMS connections:
Troubleshoot SQL Server® Issues
© ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center