July 19, 2010 at 4:27 am
Yes your script will work for your situation.
July 20, 2010 at 3:44 pm
Check out this....
update table1
set col2=B.col2
from table1 A, table2 B
Where A.col1 = B.col1 and A.col3>=B.col4 and A.col3<=B.col5
SKC
July 23, 2010 at 7:46 am
Thanks everyone....Joe, thanks for the insight.
September 8, 2010 at 2:40 pm
Thanks for the reply CELKO!. How do you troubleshoot the following error message
Msg 8672, Level 16, State 1, Line 1
The MERGE statement attempted to UPDATE or DELETE the same row more than once. This happens when a target row matches more than one source row. A MERGE statement cannot UPDATE/DELETE the same row of the target table multiple times. Refine the ON clause to ensure a target row matches at most one source row, or use the GROUP BY clause to group the source rows.
Is there a similar functionality available with SSIS? Thanks.
Viewing 4 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply