Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to "do after" in SSIS

Posted on 2011-02-10
8
Medium Priority
?
262 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
Technology Partners: 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!

 

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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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

636 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