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

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'