Very slow connection to SQL Server 2005 only if using ADO.NET with SqlClient -


I have a new new server with Windows 2008 Server 64bit + SQL Server 2005 Standard Edition SP3.

When I try to open a connection to this server from the client in the same domain (Windows XP, Net 3.5), it takes approximately 20 seconds to open the connection.

After opening the connection, everything is as fast as ever.

When using an MDAC 2.8 connection, or ADO.NET OleDb, there is no problem.

How can I get the reason for a slow connection?

The problem was the firewall running on the server. I added an exception to Port 1433 and the problem ended.

Possible explanation: It may be that by using the OLDB, trying to name the pipes bypassing the connection to the firewall rules.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -