[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

SQL server 2005 timeout problem

I am getting SQl timeout from SQL server 2005. My sql statement is taking more than 15sec.
I used database engine tuning advisor. But it doesnt give any recommendations. I changed remote query timeout to 6000 in Connection page in MS SQL Server Management Studio.
I added timeout to connnection string too.
Connection string="data source=xxxx;database=yyyy;user=aaa;password=bbb;timeout=6000"
But I am still getting timeout error.  
Do you have any recommendation.  Why does not  sql server look timeout?
0
aesatlanta
Asked:
aesatlanta
1 Solution
 
lundnakCommented:
In SQL Server Management Studio, go to the menu, select tools, and options.
In the options window, click query execution.
What does you Execution time-out field say?
It should be 0.
0
 
mastooCommented:
I think that connection string timeout is a timeout for the connection attempt.  You need to set the query timeout in the application you are using (or do something to reduce the execution time).  For instance, in .Net it would be SqlCommand.CommandTimeout.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now