Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Get Rows Base on package variable then removes rows from source Expand / Collapse
Author
Message
Posted Saturday, August 04, 2012 8:02 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, February 15, 2013 10:35 AM
Points: 5, Visits: 86
I have a package where I am retrieving rows from a source table based on the min(YearMonth) field e.g. 201005, I was able to pass variable using a execute sql task, then I have a data flow which uses a conditional split statement to redirect the rows to my historical tables. now I would like to delete those rows from the source table once they have been redirected. I tried used another Execute Task using the variable in a where clause to delete the rows, but it did not work. Any suggestions on how to delete the rows from the source? Thanks
Post #1340232
Posted Sunday, August 05, 2012 11:23 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, February 15, 2013 10:35 AM
Points: 5, Visits: 86
Solved the issue with by using the ? in my where clause and passing my variable to the parameter mapping in the execute sql task. Thanks
Post #1340280
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse