OLEDB command

  • Hi

    how to update the tables using oledb command tranformation..

    plz give me detailed small example..

  • Lets say your dataflow is returning the following dataset with five records to the sql command statement:

    ID FirstName LastName

    1 Tom Smith

    2 Frank Thomas

    3 Fred Simpson

    4 Jackie Robinson

    5 Debra McMillian

    You can update this in your database by just writing a Update statement:

    UPDATE tblMyTable

    SET FirstName = ?, LastName = ?

    WHERE ID = ?

    So for each row in your dataflow this update statement will run and update that row in your database (the ? will get replaced with the value in that field).

    Thanks,

    Strick

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply