maintenance plan with rebuild index failed

  • HI ,

    Every weekend we are running a maintenance plan with rebuild index ,update statistics and database integrity .Last week plan is failed with below error

    " failed with the following error: "A severe error occurred on the current command. The results, if any, should be discarded.

    A severe error occurred on the current command. The results, if any, should be discarded.".

    Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

    parameters not set correctly, or connection not established correctly.

    Thanks ,

    Lavanya

  • Probable reasons:

    •Upgrade issues / BUG fix

    •Corruption DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    •Or Restart required.

    Please follow the discussion on SSC.

    A severe error occurred on the current command.The results, if any, should be discarded.

    http://www.sqlservercentral.com/Forums/Topic521583-149-1.aspx

  • Could be corruption, could be that someone killed the session (it gives the same error). If you suspect corruption, do not restart SQL until you've checked for it.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Firstly do a check db integrity, then do rebuild index

    You don't need an update stats if you doing a rebuild index.

    Regards,

    Skybvi

    Regards
    Sushant Kumar
    MCTS,MCP

  • SKYBVI (12/12/2011)


    Firstly do a check db integrity, then do rebuild index

    You don't need an update stats if you doing a rebuild index.

    Regards,

    Skybvi

    Except for all the stats that are not updated by the index rebuild. Which is usually a lot of them 😉

  • Ninja's_RGR'us (12/12/2011)


    SKYBVI (12/12/2011)


    Firstly do a check db integrity, then do rebuild index

    You don't need an update stats if you doing a rebuild index.

    Regards,

    Skybvi

    Except for all the stats that are not updated by the index rebuild. Which is usually a lot of them 😉

    Ya but mostly it will be redundunt.

    Its advisable though to keep both rebuild index and update stats in diff jobs at diff times.

    Regards,

    Skybvi

    Regards
    Sushant Kumar
    MCTS,MCP

  • SKYBVI (12/12/2011)


    Ninja's_RGR'us (12/12/2011)


    SKYBVI (12/12/2011)


    Firstly do a check db integrity, then do rebuild index

    You don't need an update stats if you doing a rebuild index.

    Regards,

    Skybvi

    Except for all the stats that are not updated by the index rebuild. Which is usually a lot of them 😉

    Ya but mostly it will be redundunt.

    Its advisable though to keep both rebuild index and update stats in diff jobs at diff times.

    Regards,

    Skybvi

    If they're really redundant, then delete them. :hehe:

    If SS recreates them it's because they are needed.

  • SKYBVI (12/12/2011)


    Ninja's_RGR'us (12/12/2011)


    Except for all the stats that are not updated by the index rebuild. Which is usually a lot of them 😉

    Ya but mostly it will be redundunt.

    Disagree. You can easily have more column statistics than index statistics, and the maint plan does allow for just column statistics to be updated.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (12/12/2011)


    SKYBVI (12/12/2011)


    Ninja's_RGR'us (12/12/2011)


    Except for all the stats that are not updated by the index rebuild. Which is usually a lot of them 😉

    Ya but mostly it will be redundunt.

    Disagree. You can easily have more column statistics than index statistics, and the maint plan does allow for just column statistics to be updated.

    It seems contradictory....

    Sometimes, you advice not to run update stats after rebuild index ( when some1 asks the order of all maintenance tasks)

    and

    sometimes you tell to run it.

    So, is it that there should be alternate jobs with that adjustment.?

    Regards,

    Skybvi

    Regards
    Sushant Kumar
    MCTS,MCP

  • SKYBVI (12/12/2011)


    GilaMonster (12/12/2011)


    SKYBVI (12/12/2011)


    Ninja's_RGR'us (12/12/2011)


    Except for all the stats that are not updated by the index rebuild. Which is usually a lot of them 😉

    Ya but mostly it will be redundunt.

    Disagree. You can easily have more column statistics than index statistics, and the maint plan does allow for just column statistics to be updated.

    It seems contradictory....

    Sometimes, you advice not to run update stats after rebuild index ( when some1 asks the order of all maintenance tasks)

    and

    sometimes you tell to run it.

    So, is it that there should be alternate jobs with that adjustment.?

    Regards,

    Skybvi

    She never said (meant) not to update stats. She said not to update the stats that were just updated in the index rebuild.

  • Hi,

    Please let me know good maintenance plan for Production Database size >5GB

    Any proper order like (rebuild index ,update statistics and database integrity etc...) Every weekend or Daily

    Thanks in advance

  • jamessdba (12/14/2011)


    Hi,

    Please let me know good maintenance plan for Production Database size >5GB

    Any proper order like (rebuild index ,update statistics and database integrity etc...) Every weekend or Daily

    Thanks in advance

    Please don't hijack the thread. Start a new thread for your question. It helps us not mixing up scenarios / solutions.

  • Ok thanks

Viewing 13 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic. Login to reply