S
Steven Blair
I have a DB connection performance issue in my C# app.
I have used the Stopwatch to track how long it takes to do a couple
things.
Creating a SqlConnection object takes 19ms, and Opening a connection
(Sql2005) takes roughly 120ms.
Connecting to Sql2000 is around 64ms.
Does this sound correct, and can I speed this, since 140ms is
unacceptable for creating a connection in this app.
This was tested on a desktop PC. We have some older software which uses
Visual Basic code which connects a lot quicker.
On one Server (very high spec) we hav had all our Database activity done
in <1ms!
Any help on this would be appreciated.
Steven
I have used the Stopwatch to track how long it takes to do a couple
things.
Creating a SqlConnection object takes 19ms, and Opening a connection
(Sql2005) takes roughly 120ms.
Connecting to Sql2000 is around 64ms.
Does this sound correct, and can I speed this, since 140ms is
unacceptable for creating a connection in this app.
This was tested on a desktop PC. We have some older software which uses
Visual Basic code which connects a lot quicker.
On one Server (very high spec) we hav had all our Database activity done
in <1ms!
Any help on this would be appreciated.
Steven