Create and Troubleshoot Connections. Quest Software Toad for SQL Server 5.7
विज्ञापन
विज्ञापन
Create and Troubleshoot Connections
Understand Toad Connections
In Toad, a connection represents one or more actual connections to the database. Toad creates an initial database connection for general usage. It also creates a separate database connection for each Editor (the first time you execute a statement) and a separate database connection for each Data tab in the Database Explorer (the first time you select the tab and data is queried).
The database connection for each Editor and Data tab remain open until you close the associated window; however, the connections remain in an inactive state if a statement is not currently executing.
Tips:
l
To view the number of actual database connections that exist for a Toad connection and how many of those database connections are active, place the cursor over the connection in the Connection Manager or the Connection toolbar.
l
You can view the progress of statements executing in the background in a progress bar located on the lower right side of the status bar. To cancel a script's execution, click the progress bar to display the Background Processes window. It is recommended to cancel only your own processes, as terminating Toad activities may lead to unexpected behavior.
Share Database Connections
Editors and Data tabs can share the same database connection when the connection is inactive if you clear the Use specific connection for each open editor checkbox in Tools
| Options | Editor | General. Any new executions or windows attempt to use this connection first. 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 connection is in use and you attempt to execute it, one of the following occurs: l
If your database does not support executing multiple queries on a shared connection, a dialog prompts you to either permanently associate the window with a new database connection, cancel the previous operation, or add the query to a queue until the current operation completes, and the execute it. If you place multiple queries in the queue, each one executes in the order that it was added to the queue.
Note: Although you can share a database connection, any commits apply to the selected window only.
Toad for SQL Server Installation Guide
Create and Troubleshoot Connections
Create SQL Server and SQL Azure Connections
You can create a new connection, or connect to an existing connection from the Create New
Connection window. See "Troubleshoot SQL Server Issues" (page 25) for more information
about troubleshooting connection issues.
Note: For SQL Azure connections: l
You should be granted VIEW DEFINITION for those databases you want to work with.
l
You must also be given explicit read-access to the master database.
l
You can login to Windows Azure Platform by selecting Tools | Cloud Computing |
SQL Azure Portal and providing your credentials.
l
Make sure that no Azure firewall rule restricts your IP address from having access to
Azure server. See "Create and Alter Azure Firewall Rules" in the online help for more information.
To create a new connection
1. Click on the toolbar (ALT+F+N).
2. Select SQL Server from the Group list box.
3. Review the following for additional information:
Login Tab
Server name
Password
Category
Description
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:
l
For SQL Azure connections, enter
InstanceName.database.windows.net in this field.
l
For named instances, enter the
MachineName\InstanceName in this field.
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.
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
23
Toad for SQL Server Installation Guide
Create and Troubleshoot Connections
24
Encrypt connection
Click here to view a video of this feature.
Select this option to enable encryption for the current connection provided that the certificate has been already installed on the server.
Description Advanced
Tab
Network protocol
Select one of the following: l
Shared Memory l
TCP/IP l
Named Pipes
Note: When establishing Named Pipes connection "Poll service status in connection list" option should be cleared.
4. 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 connect to server via Central Management Server
Note: This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.
1. Connect to the server, where the CMS is registered.
2. Right-click a connection and select Connect to Central Management Server.
3. Expand CMS Connections list.
4. Double-click the server to connect to it.
Notes:
l
CMS is available on Microsoft SQL Server 2008 only.
l
User should have an appropriate login (Windows Authentication and grant to connect to selected server are required) created on the server to which he connects via CMS.
Toad for SQL Server Installation Guide
Create and Troubleshoot Connections
25
Troubleshoot SQL Server Issues
Installation Issues
The following table describes issues related to installing Toad for DB2.
Issue
When installing Toad using Quest Installer on
Windows 7 64-bit,
Program Compatibility
Assistant may appear with “This program might not have installed correctly” message.
Cause/Solution
Solution:
Select This program installed correctly to continue installation. For more information, see http://windows.microsoft.com/en-PH/windows7/Program-
Compatibility-Assistant-frequently-asked-questions
Connection Issues
Review the following solutions to help troubleshoot SQL Server connection issues in Toad.
Issue
Cannot specify a port number when connecting
Cause/Solution
Currently, Toad does not have a separate field for specifying a port number.
Solution:
You can connect if you know the port number for the instance by entering the following in the Server name field on the New Connection window:
Toad for SQL Server Installation Guide
Create and Troubleshoot Connections
Issue
Cannot connect to a remote instance in SQL
Server 2005
"Path is not of a legal form" error message when connecting or
"Could not find a part of the path
C:\Program Files\Quest
Software
\Toad for SQL
Server\Template\Scripts\
InitialSqlServer.Sql" error message when connecting
Cause/Solution
ServerName,Port or
IPAddress,Port
For example:
10.1.29.129,1234 (where 1234 is the port number of the instance)
Remote connections may not be enabled in SQL Server
2005. Also, named instances are configured to use dynamic ports and select an available port once the SQL Server
Service starts. If you are connecting to a named instance through a firewall, configure the Database Engine to listen on a specific port, so that the appropriate port is opened in the firewall.
Note: Remote connections are disabled by default in the
Express and Developer editions of SQL Server 2005.
Solution:
To enable remote connections, see "How to configure SQL
Server 2005 to allow remote connections" at: http://support.microsoft.com/kb/914277
You attempted to migrate settings from a previous install of
Toad to the current install, but the settings file
(InitialSqlServer.Sql) for the previous install was either removed, moved, or corrupt.
You may also receive this error if you installed Toad and migrated settings from a previous version, and later uninstalled the previous version.
Solution:
You must specify a valid location for the InitialSqlServer.Sql
file in Toad.
To specify a valid location
1. Open the SQL Server options page under Tools |
Options | Database | SQL Server.
2. Specify the location for the new install's
InitialSqlServer.Sql file in the Run Script on new
connection field.
By default, this file is located in the following directory:
C:\Program Files\Quest Software\Toad for SQL Server
version \Templates\Scripts
Note: Clicking may result in a "Path not found error". If you receive this error, manually enter the location in the field.
26
Toad for SQL Server Installation Guide
Create and Troubleshoot Connections
Issue Cause/Solution
Cannot establish
Named Pipes connection
Cannot establish Azure connection
Cannot access some functionality when working with Azure connection.
If you are trying to connect to the server using Named Pipes,
"Poll service status in connection list" option should be cleared.
Solution:
1. Open the options page under Tools | Options |
Database | General.
2. Clear Poll service status in connection list checkbox.
Failing to establish Azure connection may indicate that your
IP address is restricted from having access to the Azure server.
Solutions:
1. Select Tools | Cloud Computing | SQL Azure Portal to login to Azure Portal.
2. Create a firewall rule on the master database, enabling access to current IP address or range. See
"Create and Alter Azure Firewall Rules" in the online help for more information.
Failing to access some objects or designed functionality may indicate that you do not have proper permissions. Make sure the following permissions are granted: l
VIEW DEFINITION for those databases you want to work with l
Explicit read-access to the master database
27
डाउनलोड
विज्ञापन