NEED UPDATE STATS to run Synchronously

  • Anyone know how to make an UPDATE STATISTICS process 'synchronous'?  

    We are experiencing an issue in a DTS pkg whereby SQLTask1 (includes UPDATE STATS followed by a RECOMPILE) spawns an asynch task and instantaneously moves to the next SQLTask2 in the DTS pkg.  (the dependancy is 'On Success'.

    We want the contents of SQLTASK1 to 'complete' first before moving to SQLTask2 therefore -- need a mechanism to make the UPDATE STATISTICS to run synchronously.

    Any ideas?

     

    BT
  • The process is already syncronous and serial .. step 1 executes and conditionally then step 2 executes.

    What is the real issue or problem that you are having ?

    (oh, I'd also add sp_refreshview in addition to sp_recompile as well !)

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

Viewing 2 posts - 1 through 2 (of 2 total)

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