Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with SQLServerAgent Performance

Status
Not open for further replies.

clawton

Technical User
Jul 23, 2000
27
0
0
GB
I have created a database stored procedure that uses a cursor to (amongst other things) update about a thousand rows in a 10,000 row table.<br><br>Performing EXEC {DbName}.{ProcedureName} within query analyzer completes the task in about 2 seconds.<br><br>However, scheduling the same task through SQLServerAgent takes in the region of 50 seconds to complete.<br><br>Am I correct in thinking that SQLServerAgent uses ODBC to communicate with the DB ??&nbsp;&nbsp;If so, any ideas on a way around this - The job is to be scheduled to run once a minute to update time counters on certain records.&nbsp;&nbsp;2 seconds is OK - 50 seconds leaves things a bit tight on a 1 minute schedule.<br><br>Cheers<br><br>Chris.
 
Hi, Did you have any joy with improving this situation. We appear to be having the very same problem.Would be grateful for any guidance?!

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top