From SQL Server how do I read from an MS Access database to UPDATE data in one or more table columns?

前端 未结 2 1794
暗喜
暗喜 2020-12-20 16:38

My SQL Server database table has a column that needs to be Updated with data from an MS Access file. How do I query the MS Access data to perform such an update?

Imp

2条回答
  •  没有蜡笔的小新
    2020-12-20 17:07

    First set up a ODBC DSN in Windows. Open Control Panel > Administrative Tools > Data Sources (ODBC). Note that on 64 bit Windows, this might open the 64-bit-administrator. However, if you have a 32-bit Access, you need the 32-bit-administrator (%windir%\SysWOW64\odbcad32.exe).

    Then you can link the SQL-Server tables to your access db. In the Link Tables dialog, choose "ODBC Databases()" as file type.

    You can then query the linked SQL Server tables as if they were access tables.

    See Configure Microsoft Access Linked Tables with a SQL Server Database

提交回复
热议问题