How to "do after" in SSIS

Posted on 2011-02-10
Last Modified: 2012-05-11
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!
Question by:chenyuhao88
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
LVL 39

Expert Comment

by:Pratima Pharande
ID: 34868305

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

Author Comment

ID: 34868392
Hi pratima_mcs,

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

LVL 39

Expert Comment

by:Pratima Pharande
ID: 34868445
yes on succeess flow you can add next command
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Author Comment

ID: 34868459
could I add on success flow in data-flow? Or shall I do it in control-flow?
LVL 39

Expert Comment

by:Pratima Pharande
ID: 34868482
In dataflow after destination , It will have two flows to sucees line and one error Red line

Author Comment

ID: 34868528

My "ADO NET Destination" has only 1 red error line.
LVL 39

Accepted Solution

Pratima Pharande earned 500 total points
ID: 34868696
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

Author Closing Comment

ID: 34949153

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question