Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Location
    Big City
    Posts
    62

    Unanswered: SQL Server Agent Job slow performance

    I have been trying to run a stored procedure using SQL Server Agent Job, but it takes considerably longer than in Query Analyzer.

    What to do in order to speed up execution of this proc from SQL Server Agent Job???

    Thank you

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    post DDL with indexes, your sproc and sample data.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Nov 2003
    Location
    London
    Posts
    169
    Try SET NOCOUNT ON at the beginning of your stored procedure, if you haven't already.

  4. #4
    Join Date
    Apr 2007
    Location
    Big City
    Posts
    62
    Thank you, will set nocount on, and try will it again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •