Showing posts with label seconds. Show all posts
Showing posts with label seconds. Show all posts

Wednesday, March 7, 2012

Connection Timeout

Hi, I have a client application that submits heavy processing query to an instance of Sql Server 2005 (Enteriprise Edition). After a few seconds the following exception is raised: "The time available has expired before the completion of the operation or the server is not responding". If I submit to the same application light processing queries the exception is not raised.
The client application is written in VB.net and uses ADO.net. (SqlConnection, SqlCommand,.. classes). The "Timeout connection" property is set to 1000.
Any suggestion?
Thank you.

Hi Ivan,

The ConnectionTimeout property of SqlConnection defines the time boundaries to open a physical connection to the SQL Server. In your case, the physical connection seems to be established within a reasonable frame. However, after the connection is up, the client and the server begin exchanging security information as part of the login process. This is related to a different "login timeout", which unfortunately you don't seem to be able to control from SqlClient.

What is happening on the server during the login process is related to the SOS scheduler operations - I won't go into deep detail, but in a nutshell all the tasks (including processing of login information) are queued. If the queue length is very long, the login information processing may be delayed beyond the login timeout and you will experience your symptoms above. There could also be other factors - the login processing makes calls to the security subsystem, if the entire SQL machine is under heavy stress, those may take longer time, too. You should approach this as a perf problem and use appropriate tools like perfmon, the SOS DMVs, etc.

HTH,
Jivko Dobrev - MSFT
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||Connection Timeout is the timeout for connecting to SQL Server. What you need is COMMAND timeout. Set COMMAND timeout=0 for indefinite period.

Command timeout has to be set on the command object - because it is related to a particular SQL processing.

Friday, February 10, 2012

Connection problem when registering a remote SQL2000

Hello,
I try to register a remote SQL Server 2000 installed in a W2003, but it
doesn't work. Afer 6 or 7 seconds, it says: Timeout expired.
In that network , port 1433 is open and what it really surpises me, is that
I can connect via ODBC to any database of that remote SQL Server2000 !!!
Any idea ?
If you can you use Enterprise Manager from the W2003 server, please check
the following:
Launch the Properties dialog from the server object of Enterprise Manager
Select the Network Configuration button on the General tab
Is TCP/IP enabled?
Select the Connections tab
Is the Query time-out value set too low?
Is the maximum concurrent user connections value set too low?
This posting is provided "AS IS" without express or implied warranty,
guarantee, or rights.
Keith Wilson
"Charles" <ccolell@.softeng.es> wrote in message
news:eGpQpjJHEHA.3576@.tk2msftngp13.phx.gbl...
> Hello,
> I try to register a remote SQL Server 2000 installed in a W2003, but it
> doesn't work. Afer 6 or 7 seconds, it says: Timeout expired.
> In that network , port 1433 is open and what it really surpises me, is
that
> I can connect via ODBC to any database of that remote SQL Server2000 !!!
> Any idea ?
>
|||Hello,
Yes , everything is ok. TCP/IP is enabled, and the rest values, the query
time is 600 (the default value), and the maximum users is (0, the default
value which means that are unlimited).
Any other idea ?
"Keith Wilson" <keithwi@.online.microsoft.com> escribi en el mensaje
news:4074336d$1@.news.microsoft.com...
> If you can you use Enterprise Manager from the W2003 server, please check
> the following:
> Launch the Properties dialog from the server object of Enterprise
Manager
> Select the Network Configuration button on the General tab
> Is TCP/IP enabled?
> Select the Connections tab
> Is the Query time-out value set too low?
> Is the maximum concurrent user connections value set too low?
>
> This posting is provided "AS IS" without express or implied warranty,
> guarantee, or rights.
> Keith Wilson
>
> "Charles" <ccolell@.softeng.es> wrote in message
> news:eGpQpjJHEHA.3576@.tk2msftngp13.phx.gbl...
> that
>

Connection problem when registering a remote SQL2000

Hello,
I try to register a remote SQL Server 2000 installed in a W2003, but it
doesn't work. Afer 6 or 7 seconds, it says: Timeout expired.
In that network , port 1433 is open and what it really surpises me, is that
I can connect via ODBC to any database of that remote SQL Server2000 !!!
Any idea ?If you can you use Enterprise Manager from the W2003 server, please check
the following:
Launch the Properties dialog from the server object of Enterprise Manager
Select the Network Configuration button on the General tab
Is TCP/IP enabled?
Select the Connections tab
Is the Query time-out value set too low?
Is the maximum concurrent user connections value set too low?
This posting is provided "AS IS" without express or implied warranty,
guarantee, or rights.
Keith Wilson
"Charles" <ccolell@.softeng.es> wrote in message
news:eGpQpjJHEHA.3576@.tk2msftngp13.phx.gbl...
> Hello,
> I try to register a remote SQL Server 2000 installed in a W2003, but it
> doesn't work. Afer 6 or 7 seconds, it says: Timeout expired.
> In that network , port 1433 is open and what it really surpises me, is
that
> I can connect via ODBC to any database of that remote SQL Server2000 !!!
> Any idea ?
>|||Hello,
Yes , everything is ok. TCP/IP is enabled, and the rest values, the query
time is 600 (the default value), and the maximum users is (0, the default
value which means that are unlimited).
Any other idea ?
"Keith Wilson" <keithwi@.online.microsoft.com> escribi en el mensaje
news:4074336d$1@.news.microsoft.com...
> If you can you use Enterprise Manager from the W2003 server, please check
> the following:
> Launch the Properties dialog from the server object of Enterprise
Manager
> Select the Network Configuration button on the General tab
> Is TCP/IP enabled?
> Select the Connections tab
> Is the Query time-out value set too low?
> Is the maximum concurrent user connections value set too low?
>
> This posting is provided "AS IS" without express or implied warranty,
> guarantee, or rights.
> Keith Wilson
>
> "Charles" <ccolell@.softeng.es> wrote in message
> news:eGpQpjJHEHA.3576@.tk2msftngp13.phx.gbl...
> that
>