Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to perform a query in a transactional database that was used for more than 3 years. But it always says timeout expired after running for about 30 seconds when I try to run this query:

    tblAssessment ON 
    tblBPLedgerBill.strAssessmentID = tblAssessment.ObjID
WHERE tblAssessment.intType = 0 AND curSurcharge != 0

Is it possible to adjust how many seconds the query should take before it terminates it.

share|improve this question
How are you running it? Query analyzer, osql, ssms, sqlcmd, access, etc? – billinkc Dec 7 '11 at 3:44
from the sql server enterprise manager – Ieyasu Sawada Dec 7 '11 at 5:22

Check the connection properties. Click Option button when connecting to the Management Studio (EM).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.