Using RDS with ODBC Connection Pooling
If you're using an ODBC data source, you can use the connection pooling option in Internet Information Services (IIS) to achieve high performance handling of client load. Connection pooling is a resource manager for connections, maintaining the open state on frequently used connections.
To enable connection pooling, refer to the Internet Information Services documentation.
Please note that enabling connection pooling may subject the Web server to other restrictions, as noted in the Microsoft Internet Information Services documentation.
To ensure that connection pooling is stable and provides additional performance gains, you must configure Microsoft SQL Server to use the TCP/IP Socket network library.
To do this, you need to:
- Configure the SQL Server computer to use TCP/IP Sockets.
- Configure the Web server to use TCP/IP Sockets.
Configuring the SQL Server Computer to Use TCP/IP Sockets
On the SQL Server computer, run the SQL Server Setup program so that interactions with the data source use the TCP/IP Socket network library.
To specify the TCP/IP Socket network library on the SQL Server computer
In Microsoft SQL Server 6.5:
- From the Start menu, point to Programs, point to Microsoft SQL Server 6.5, and then click SQL Setup.
- Click Continue twice.
- In the Microsoft SQL Server —Options dialog box, select Change Network Support, and then click Continue.
- Make sure the TCP/IP Sockets check box is selected, and click OK.
- Click Continue to finish, and exit setup.
In Microsoft SQL Server 7.0:
- From the Start menu, point to Programs, point to Microsoft SQL Server 7.0, and then click Server Network Utility.
- On the General tab of the dialog box, click Add.
- In the Add Network Library Configuration dialog box, click TCP/IP.
- In the Port number and Proxy address boxes, enter the port number and proxy address provided by your network administrator.
- Click OK to finish, and exit setup.
Configuring the Web Server to Use TCP/IP Sockets
There are two options for configuring the Web server to use TCP/IP Sockets. What you do depends on whether all SQL Servers are accessed from the Web server, or only a specific SQL Server is accessed from the Web server.
If all SQL Servers are accessed from the Web server, you need to run the SQL Server Client Configuration Utility on the Web server computer. The following steps change the default network library for all SQL Server connections made from this IIS Web server to use the TCP/IP Sockets network library.
To configure the Web server (all SQL Servers)
For Microsoft SQL Server 6.5:
- From the Start menu, point to Programs, point to Microsoft SQL Server 6.5 , and then click SQL Client Configuration Utility.
- Click the Net Library tab.
- In the Default Network box, select TCP/IP Sockets.
- Click Done to save changes and exit the utility.
For Microsoft SQL Server 7.0:
- From the Start menu, point to Programs, point to Microsoft SQL Server 7.0 , and then click Client Network Utility.
- Click the General tab.
- In the Default network library box, click TCP/IP.
- Click OK to save changes and exit the utility.
If a specific SQL Server is accessed from a Web server, you need to run the SQL Server Client Configuration Utility on the Web server computer. To change the network library for a specific SQL Server connection, configure the SQL Server Client software on the Web server computer as follows.
To configure the Web server (a specific SQL Server)
For Microsoft SQL Server 6.5:
- From the Start menu, point to Programs, point to Microsoft SQL Server 6.5, and then click SQL Client Configuration Utility.
- Click the Advanced tab.
- In the Server box, type the name of the server to connect to using TCP/IP Sockets.
- In the DLL Name box, select TCP/IP Sockets.
- Click Add/Modify. All data sources pointing to this server will now use TCP/IP Sockets.
- Click Done.
For Microsoft SQL Server 7.0:
- From the Start menu, point to Programs, point to Microsoft SQL Server 7.0, and then click Client Configuration Utility.
- Click the General tab.
- Click Add.
- Enter the alias of the server in the Server alias box. In the Network libraries box, click TCP/IP. In the Computer name box, enter the computer name of the computer that listens for TCP/IP Sockets clients. In the Port number box, enter the port on which the SQL Server listens.
- Click OK, and then OK again to exit the utility.