G
Guest
Last week we were running some code that connects to two different SQL 7
servers. On Friday, the connection times were normal (almost instananeous).
Today, from all of our development boxes, the connections are taking 5-7
seconds to open. The app is written using the 2.0 framework.
In our code we
connect
do some work
disconnect
Operations that took seconds on Friday are taking nearly an hour today.
Our connection strings didn't change and we are using the native SQLClient
namespace.
For a test we decided to try creating a test app that opens a connection
then while that connection is open, open several more connections to see if
pooling comes into play. Oddly enough it seems pooling isn't being used.
Each connection still takes 5-7 seconds to open. The connection string we
are using is simply "Server=server;Database=db;Integrated Security=SSPI" -
nothing out of the ordinary.
We even sent so far as to create a test app in VB6 using ADO 2.7 to see if
it was something on the our network. That test app opens the connections as
normal (nearly instantaneous) so the problem appeared to be with ADO.NET
We then coded up the same simple test app in VS2003 and it ran just fine.
At this point we are at a loss and thinking something is up with ADO.NET and
the 2.0 framework on all our dev boxes.
Has anyone got any ideas on what we are seeing?
Here is our actual test app code (server and db changed for posting)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim cn As New
SqlClient.SqlConnection("Server=server;Database=db;Integrated Security=SSPI")
cn.Open()
End Sub
In VB6/ADO and VB.NET 2003/ADO.NET 1.1 this connects in less than one
second. In VB.NET 2005/ADO 2.0 this takes 5-7 seconds.
servers. On Friday, the connection times were normal (almost instananeous).
Today, from all of our development boxes, the connections are taking 5-7
seconds to open. The app is written using the 2.0 framework.
In our code we
connect
do some work
disconnect
Operations that took seconds on Friday are taking nearly an hour today.
Our connection strings didn't change and we are using the native SQLClient
namespace.
For a test we decided to try creating a test app that opens a connection
then while that connection is open, open several more connections to see if
pooling comes into play. Oddly enough it seems pooling isn't being used.
Each connection still takes 5-7 seconds to open. The connection string we
are using is simply "Server=server;Database=db;Integrated Security=SSPI" -
nothing out of the ordinary.
We even sent so far as to create a test app in VB6 using ADO 2.7 to see if
it was something on the our network. That test app opens the connections as
normal (nearly instantaneous) so the problem appeared to be with ADO.NET
We then coded up the same simple test app in VS2003 and it ran just fine.
At this point we are at a loss and thinking something is up with ADO.NET and
the 2.0 framework on all our dev boxes.
Has anyone got any ideas on what we are seeing?
Here is our actual test app code (server and db changed for posting)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim cn As New
SqlClient.SqlConnection("Server=server;Database=db;Integrated Security=SSPI")
cn.Open()
End Sub
In VB6/ADO and VB.NET 2003/ADO.NET 1.1 this connects in less than one
second. In VB.NET 2005/ADO 2.0 this takes 5-7 seconds.