?
Solved

How to "do after" in SSIS

Posted on 2011-02-10
8
Medium Priority
?
261 Views
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!
0
Comment
Question by:chenyuhao88
[X]
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
8 Comments
 
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
0
 

Author Comment

by:chenyuhao88
ID: 34868392
Hi pratima_mcs,

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

0
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 34868445
yes on succeess flow you can add next command
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

Author Comment

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

Expert Comment

by:Pratima Pharande
ID: 34868482
In dataflow after Ado.net destination , It will have two flows to it..one sucees ..green line and one error Red line
0
 

Author Comment

by:chenyuhao88
ID: 34868528
pratima_mcs,

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

Accepted Solution

by:
Pratima Pharande earned 1500 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
0
 

Author Closing Comment

by:chenyuhao88
ID: 34949153
Thanks!
0

Featured Post

Industry Leaders: 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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

765 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