如何将SQL Server中的数据导出到MS Access并使用C#以编程方式再次导入MS Access to SQL。 [英] How to export data in sql server to MS Access and import MS Access to SQL again programmatically with C#.

查看:92
本文介绍了如何将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)


这篇关于如何将SQL Server中的数据导出到MS Access并使用C#以编程方式再次导入MS Access to SQL。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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