Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Job Timeout Expand / Collapse
Author
Message
Posted Wednesday, April 17, 2013 10:17 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, April 11, 2014 2:15 PM
Points: 12, Visits: 219
I have a stored procedure that gathers information about index health and inserts it into a table. The query is joining dm_db_index_physical_stats and sys.indexes. The database contains 2800 tables, so the operation takes 90+ minutes to complete. But it completes successfully when executed using SSMS.

However, a job created to execute the stored procedure fails every time, after about 14 minutes.
The error is:
"The semaphore timeout period has expired. [SQLSTATE 08S01] (Error 121) Communication link failure [SQLSTATE 08S01] (Error 121)."

My question: why would the operation fail, and why timeout so quickly, when executed from SQL Agent? Yet, the same operation is successful when run manually?
Post #1443369
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse