DOT NET SQL CONNECTION TIME OUT PROBLEM

5 pts.
Tags:
.NET
SQL connection
SQL Connection Timeout
IN MY SQL CONNECTION STRING I WAS MENTION CONNECTION TIME OUT IS 500. MY SQL PROCEDURE WAS RUNNING 45 SECONDS ONLY IN QUERY ANALYZER. ITS RUN ON DOT NET PROGRAM THEN CONNETION TIME OUT ERROR WAS COMMING.

Software/Hardware used:
DOT NET 2005 WITH SQL SERVER 2000

Answer Wiki

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

The timeout in the connection string is the connection timeout, not the command runtime timeout. Within your .NET code on the object which executes the stored procedure you should be able to set a timeout parameter. This will change the runtime timeout for that command.

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    Is this error occurring when executing the stored procedure, or when connecting to the database ? The connection timeout property defines the time to wait when establishing the database connection, and it does not affect the execution of commands when the connection is already open. BTW, 500 seconds are more than 8 minutes, and that is too much time to wait for a database connection.
    68,820 pointsBadges:
    report
  • KonguKarna
    [...] Dot Net SQL Connection Time Out Problem, asked by KonguKarna and answered by [...]
    0 pointsBadges:
    report

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following