Stopping a Script Component Source


what correct way stop script component source , rolling back?

i'm firing error , immediatly exiting createnewoutputrows method (otherwise continue output rows). correct way it?


paulo morgado

correct.  in order stop source, should:

  1. stop producing rows (duh :) )
  2. report error via fireerror
  3. throw exception/return/stop executing.  (the fireerror sufficient raise error condition ssis stop data flow, it's choice if throw error drive point home.)

please note causing source fail not cause rest of components in data flow fail immediately.  other sources continue load time until ssis can negotiate/force them stop.


todd mcdermid's blog talk me on


SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

RFC_ERROR_SYSTEM_FAILURE with SAP ECC 6 Unicode

C# System.Data.Common DbCommand and getting Datasets from Oracle