简体   繁体   中英

SQL Server 2005 query multiple Access databases?

有没有办法让SQL Server 2005在一个SQL语句中查询3个或更多单独的Access数据库(每个返回1个记录)?

Yes, but it will require you to create a Linked Server instance for each Access database. See here for details about creating Linked Server instances on SQL Server 2005 to MS Access .

Once you have those in place, you can query SQL Server and it will pass on the queries to the respective Access databases based on using the Linked Server instance notation when specifying tables in your SQL Server queries.

您想要的是每个Access数据库的链接服务器

请注意,在SQL 2005 64位中,您不会很快通过链接服务器查询当前版本的Access或Excel。

是的,使用sp_addlinkedserver将它们设置为链接服务器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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