Take the 2-minute tour ×
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. It's 100% free, no registration required.

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:

SELECT COUNT(*)
FROM tblBPLedgerBill LEFT JOIN
    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

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

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.