如何将ms访问2007数据导入sql server表 [英] How to Import ms access 2007 data into sql server table

查看:60
本文介绍了如何将ms访问2007数据导入sql server表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过asp.net c#中的代码将ms access 2007数据库表中的所有或特定列导入sql server现有表。

解决方案

简而言之,为什么note备注使用从Access访问数据集中读取数据OleDbConnection [ ^ ]和 OleDbDataAdapter [ ^ ]和数据集中的数据通过 SqlConnection [ ^ 使用 SqlBulkCopy.WriteToServer Method(DataTable) [ ^ ]

How to import all or specific columns from ms access 2007 database table into sql server existing table through code in asp.net c#.

解决方案

In short, why note read the data from Access to a dataset using a OleDbConnection[^] and OleDbDataAdapter[^] and the from the dataset insert the data from the dataset to the SQL Server table via SqlConnection[^] using SqlBulkCopy.WriteToServer Method (DataTable)[^]


这篇关于如何将ms访问2007数据导入sql server表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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