I have a product table in sql server 2005 that needs to be updated with some fields in the csv file. Both files have a vendor part number that can be associated with where I can update the products.discontined field to others in the csv file.
My question is the best way to approach this?
I considered creating an odbc connection to an excel file and figuring out how to combine the update of two columns. Import the entire csv file (~ 60 MB) into the temp table in the sql server, and then write the tsql procedure to search, compare, update? Also run the opensource command from the query analyzer and write the procedure to read in the csv file and update the table in this way.
early
phill source
share