如何将SQL Server中的数据导出到MS Access并使用C#以编程方式再次导入MS Access to SQL。

问题描述:

嗨!



我想将所有表中的数据从SQL Server数据库导出到Microsoft Access数据库。再次,将所有表中的数据从Microsoft Access数据库导入到SQL Server,反之亦然。



谢谢!

Hi!

I want to export data in all tables from SQL Server database to Microsoft Access database. And again, import data in all tables from the Microsoft Access database to SQL Server vice versa.

Thank You!

C#不是正确的方法,我建议使用SQL作业或将进程拆分为2个操作,编写模式脚本并传递数据。



你在处理随机表吗?



转移之前是否存在访问数据库?



这些表是存在于一个数据库还是两个数据库中?



这是否可重复(那么为什么模式不在任何一个目标中)
C# is not the correct way to do this, I would suggest either a SQL job or splitting the process to 2 operations, scripting the schema and passing the data.

Are you processing random tables?

Does the access database exists before transferring?

Do the tables exist in 1 or both database?

Is this repeatable (then why is the schema not already in either target)