Solved

How to "do after" in SSIS

Posted on 2011-02-10
8
255 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
  • 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
 

Author Comment

by:chenyuhao88
ID: 34868459
could I add on success flow in data-flow? Or shall I do it in control-flow?
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
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 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
0
 

Author Closing Comment

by:chenyuhao88
ID: 34949153
Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now