September 20, 2006 at 1:56 pm
Hi
Here is the scenario:
Can any one kindly suggest?
September 20, 2006 at 10:54 pm
hi
1) create two temp tables in sql db and transfer the access information into the temp tables.
2) write update statement to your original db comparing the key's of temp table and original table.
UPDATE table1
SET col1 = temptable1.col1 FROM table1 INNER JOIN
temptable1 ON table1.col1 = temptable1.col1
3)now delete rows from temptable1 for those rows available in table1.
4)after deletion, still if there are any rows in temptable1 then those rows are new rows.
5) insert new rows in table1.
write down the following sql statment in sqltask and execute the DTS
For the primary and secondary key combination. Insert the table1 first (primary table) and then the foreign key table
Regards
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply