简体   繁体   中英

Joining data from Access and SQL tables

I have one access table like this

id     FrstName     LastName     Status
=================================================
1      John          Smith          1
2      Mike          Black          0

This is table from Project 1. I have to work on Project 2 where I have SQL table. In this project I need to combine data from access (Project 1) and data from SQL (Project 2).

Is there a way that I join table from SQL with table from access?

您可以通过选项Linked Server链接 SQL Server中的访问数据库,然后您可以使用它进行查询。

You have two options:

  1. Create a linked server in DB invironment, then create a SP to take care of it.

  2. Get two DataSets for them, then merge two datatables into one based on ID.

Hope it gives you some idea.

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