如何从SQL Server中从MS Access数据库读取一个或多个表列中的UPDATE数据? [英] From SQL Server how do I read from an MS Access database to UPDATE data in one or more table columns?

查看:52
本文介绍了如何从SQL Server中从MS Access数据库读取一个或多个表列中的UPDATE数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的SQL Server数据库表中有一列,需要使用MS Access文件中的数据进行更新.如何查询MS Access数据以执行此类更新?

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?

导入向导似乎只能处理新数据的插入,而不能处理现有数据的更新?还是我误解了如何使用向导?

Import Wizard seems to only handle Inserting of new data and not UPDATE existing data? Or am I misunderstanding how to use the wizard?

推荐答案

首先在Windows中设置ODBC DSN.打开控制面板>管理工具>数据源(ODBC).请注意,在64位Windows上,这可能会打开64位管理员.但是,如果您具有32位访问权限,则需要32位管理员(%windir%\ SysWOW64 \ odbcad32.exe).

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).

然后,您可以将SQL-Server表链接到访问数据库.在链接表"对话框中,选择"ODBC Databases()"作为文件类型.

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

然后,您可以查询链接的SQL Server表,就像它们是访问表一样.

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

请参见使用SQL Server数据库配置Microsoft Access链接表

这篇关于如何从SQL Server中从MS Access数据库读取一个或多个表列中的UPDATE数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆