update Data from Temp

  • Hi

    Can you please help me with a TSql statement to update data from a temp table to a SQL table.

    Basically have a temp table and need to use the values in one column in this table and update data in the live table based on certain criteria, simple.

    Your solution appreciated.

    Thanks

    Dinesh

  • Some sample code from you would make this easier however, it goes something like this;

    UPDATE Table SET Column = T.Column

    FROM TempTable T INNER JOIN Table X ON T.Pkey = X.Pkey

    WHERE Criteria  = or <> or whatever you wish to do


    Kindest Regards,

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

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