Server Timeout on initial web connection to SQLServer

25 pts.
SQL Express 2008
SQL Server
SQL Server Enterprise Edition
Web server administration
Web servers
We run a couple of websites (hosted on different webservers) that connect to an SQL Server.

The data was recently moved to another SQL Server (called SQLCLUSTER) and now the first time the site is accessed, it takes over 20 seconds to bring up the page. If I don't set the Connection Timeout in the connection string to a value higher than that, the server times out. Subsequent pages load fine.

If I connect back to the old server there's no problem. The old server runs Express 2008, SQLCLUSTER runs 2008 Enterprise edition. It happens to both webservers and it only happens with SQLCLUSTER (regardless of which database is being connected to). A similar delay happens in VWD's Database Explorer when testing a connection to SQLCLUSTER.

Databases hosted on SQLCLUSTER are also the backend for Access applications. There is no delay accessing data through the Access front ends, or through SQL Server Mgmt Studio.

The timeout happens at the Open statement of: dbConn = New SqlConnection("Server=SQLCLUSTER;Database=GO_SQL_WEB;UID=WEB_USER;PWD=[xxxx]") (as stored in web.config) dbConn.Open()

The servers are all in the same LAN so I don't think its a firewall issue. The timeout also happens when viewing through localhost on either webserver.

Are there any web-specific settings that need to be addressed in SQL Server Enterprise?

Software/Hardware used:
SQL Server 2008 R2 Enterprise, Windows Server 2008 R2, IIS7

Answer Wiki

Thanks. We'll let you know when a new response is added.

No there are no specific settings for connecting to Enterprise edition. The Express and Enterprise editions of SQL Server and the same with just some of the features disabled in Express.

What is the exact error message you are getting when you try and connect?

Discuss This Question: 2  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Ajmo
    The message is: Server Error in '/' Application. ... Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
    25 pointsBadges:
  • Ajmo
    I solved the problem by specifying a Network Library (named pipes) in the connection string. Thanks for your help.
    25 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: