I assume therefore you know how to run a query and have the necessary
permissions. To update a SQL Server database using data from an Excel
workbook, connect to the workbook using the MS Jet OLEDB data provider
and execute a SELECT..INTO query which specifies the SQL Server
connection string, using its ODBC driver (sorry, don't know of a way
to use OLEDB), in the query e.g.
SELECT MyCol1, MyCol2
INTO [ODBC;Driver={SQL
Server};SERVER=MyServer;DATABASE=MyDatabase;UID=;Pwd=;].MyNewTable
FROM [MyWorksheet$]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.