简体   繁体   English

链接到SQL Server 2000的访问表

[英]Access table linked to SQL Server 2000

Is it possible to link a specific access table to a sql table, in that if any changes to the access table the sql table will also show the changes? 是否可以将特定的访问表链接到sql表,因为如果对访问表进行任何更改,sql表也将显示更改?

Thank you for any Help. 感谢您的任何帮助。

It sounds like you are asking if it is possible to set up a replication procedure from Access to SQL Server. 听起来您在询问是否可以设置从Access到SQL Server的复制过程。 I don't believe that you can. 我不相信你可以。 However, you can import from Access pretty easily. 但是,您可以很容易地从Access导入。

http://office.microsoft.com/en-us/access-help/import-or-link-to-sql-server-data-HA010200494.aspx http://office.microsoft.com/zh-CN/access-help/import-or-link-to-sql-server-data-HA010200494.aspx

It's called a linked table. 这称为链接表。
In the tables list, click New, Link table, then in the file type, select odbc, and navigate to your SS database/table. 在表列表中,单击“新建,链接表”,然后在文件类型中,选择“ odbc”,然后导航到SS数据库/表。 You might have to create a DSN, if none exists yet. 如果尚不存在,则可能必须创建一个DSN。
To create DSN-less links to your table, it can be done in VBA, and can be found somewhere on SO. 要创建到表的无DSN链接,可以在VBA中完成,并且可以在SO的某个位置找到它。
Alternatively, you might want to use an ADP instead of an MDB. 或者,您可能要使用ADP而不是MDB。 In that case, the tables in the Access container ARE the SQL Server tables, and the queries ARE the views on the server. 在这种情况下,Access容器中的表是SQL Server表,而查询是服务器上的视图。
That allows you to use Access for RAD and easy reporting. 这样一来,您就可以将Access用于RAD并轻松进行报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM