Cancelling a Bulk Operation impact

  • Hi Experts,

    What happens if i cancel a bulk insert operation for 1 Billions rows into a table in between?

    is the effect same for queries using command BCP , BULK INSERT and INSERT INTO?

    TIA

  • Can anyone please help?

  • It rolls back, same as any other data modification when stopped part way through.

    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
  • Thanks a lot Gail.

  • The BCP utility has a batch parameter that allows you to specify the number of records to group in a transaction. If something happens during the BCP process, only the last batch will be rolled back. If this parameter is not used the entire set will be one batch.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 5 posts - 1 through 4 (of 4 total)

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