I have a requirement to update a SQL Table using an excel file. Columns in the file and the table are same. Is there is any automation to update the table without reading each record from the Excel file.
This depends on the version of SQL Server you are running, and your permissable options. If set up correctly, MS SQL Server 7.0 has a DTC wizard that will import and append data to tables from a multitude of sources, but beware, one wrong option clicked and you could overwrite all data. The more likely choice is a module in VBA within the sheet itself to stuff all of the data in an ADODB/DAO recordset and update the table. This may still require stepping through each row, but only to get the data in the recordset and issue an .UpdateBatch command.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.