• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

How to "do after" in SSIS

Dear All,

In my data flow I read data from source with condition, and copy to my destination db.

After finish, i try to set 1 column in my source table to be "finished".

I could think of putting 1 SQL task in OnPostExecute event handler. However if I don't want to re-write that source condition again, is there any quick way I could do it directly in data flow?


Thanks a lot!
0
chenyuhao88
Asked:
chenyuhao88
  • 4
  • 4
1 Solution
 
Pratima PharandeCommented:

to Copy data to destination you must be used OLE DB Destination.
After this on Success flow you can add one OLE DB Command
 or Script Componnent.and ad your code here to set column value

In Script component you need to write down code for it
0
 
chenyuhao88Author Commented:
Hi pratima_mcs,

My source is OLE DB and my destination is ADO.NET. Is that ok?

0
 
Pratima PharandeCommented:
yes on succeess flow you can add next command
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
chenyuhao88Author Commented:
could I add on success flow in data-flow? Or shall I do it in control-flow?
0
 
Pratima PharandeCommented:
In dataflow after Ado.net destination , It will have two flows to it..one sucees ..green line and one error Red line
0
 
chenyuhao88Author Commented:
pratima_mcs,

My "ADO NET Destination" has only 1 red error line.
0
 
Pratima PharandeCommented:
have you used Store procedure fo Ado Destination ?

If yes you cann add your code in the SP itself to set the parameter.

Or you can add screep task to control flow then
0
 
chenyuhao88Author Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now