RRinTetons
IS-IT--Management
I often get an Excel spreadsheet with a column a up to several thousand PK's and a new value that needs to be updated for those rows. To date, I've written one UPDATE statement for the target table with placeholders for the PK and update value, pasted that into Excel and then used Excel's SUBSTITUTE function to create up to several thousand UPDATE statements. It works, it's flexible and to date it hasn't presented any performance issues.
It just seems too damn kludgy! Does anyone have a suggestion on a better way to do this? Again, these are one off's, rarely if ever repeated, applied to a variety of tables.
-
Richard Ray
Jackson Hole Mountain Resort
It just seems too damn kludgy! Does anyone have a suggestion on a better way to do this? Again, these are one off's, rarely if ever repeated, applied to a variety of tables.
-
Richard Ray
Jackson Hole Mountain Resort