Hello
I have a Production table that needs to be updated every day.(replication or log shipping is not an option, must use dts or an sp)
Currently I have a sp that returns the data in a cursor and loops throuh the cursor to insert or update the data. This is slow and a pain to maintain.
I was thinking of a table variable to hold the new records, then insert them. Another table variable to hold the updates but I can't get it to work with out a cursor to go one record at a time.
Any idea's on a better way? Does a batch update exist?
Thanks for the help!
I have a Production table that needs to be updated every day.(replication or log shipping is not an option, must use dts or an sp)
Currently I have a sp that returns the data in a cursor and loops throuh the cursor to insert or update the data. This is slow and a pain to maintain.
I was thinking of a table variable to hold the new records, then insert them. Another table variable to hold the updates but I can't get it to work with out a cursor to go one record at a time.
Any idea's on a better way? Does a batch update exist?
Thanks for the help!