• kapil_kk (12/18/2013)


    Abu Dina (12/18/2013)


    +1 to Koens's suggestion.

    I like to keep things simple so I would link the Data Flow Task to an Execute SQL Task (with On Success precedence constraint) that contains your UPDATE statement.

    I am also thinking doing in that way only but little confuse that If I write query using Precedence constraint as Succees in ExecuteSQLTask as

    Update table1

    Set StatusFlag = 1

    Then does it update only those rows which comes from source for StatusFlag = 0 or it will update the statusflag = 1 for whole table...

    kapil kapil kapil..... what's wrong bro? 😛

    You're transferring all records where StatusFlag = 0 so your UPDATE statement will be changing all records with StatusFlag = 0 to StatusF;ag = 1 (in other words updating the rows you've just transferred).

    UPDATE YourTable

    SET StatusFlag = 1

    WHERE StatusFlag = 0

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn