Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Best Practice - How to Filter Data After Execute SQL Task

$
0
0

 Newbie question:

In my Package I have an Execute SQL task running a stored procedure that populates a table. If the task cannot find a person's date of birth, it sets that column with NULL.

For the records with no DOB, I do not want to continue processing. Instead, I need to put them in a separate table for reporting.

I could to the work inside the stored procedure, but I would like to make it a visible step in the package design.

Ideally, what is the best practice to pull certain records from a table and put them in table A and put the rest in table B?

There is an OnPostExecute event I can use to set up a Data Flow Task to set up the query and move the fields.

Or, in the main Control Flow I can have another Execute SQL task after the first one that does that work. 

Does anyone have suggestions?

Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>