如何使用C#将数据从访问数据库导入到sql server 2008 [英] How to import data from access database to sql server 2008 using C#

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

问题描述

您好

我想使用c#将数据从访问数据库导入到sql server 2008.

使用一些验证方法,

在Access中我们有varchar(10)和sql我们有varchar(11)然后不允许导入数据。喜欢vise,如果名称与列不匹配,也不允许导入。







谢谢

Hello
I want to import data from access database to sql server 2008 using c#.
With some validation means,
In Access we have varchar(10) and sql we have varchar(11) then not allow to import data. like vise if name is not match of the column than also not allow to import.



Thanks

推荐答案





使用SQL Server DTS,你可以做到以上几点。



执行SQL Server 2005集成来自C#的服务包 [ ^ ]


微软为此提供了一个工具。

以下是我为其他人提供的说明。



1.下载该工具的链接 -

http://www.microsoft.com/en-us/download/details.aspx?id=28763 [ ^ ]





2.下载许可证密钥以启用该工具。

http://www.microsoft .com / download / en / details.aspx?id = 18589 [ ^ ]



3.启动下载的工具并指定在步骤2中下载的许可证密钥的位置/>


4.按照向导将对象从Access传输到SQL Server#





我尝试使用一个小型MDB,这很简单。

希望这会有所帮助。





干杯
There is a tool provided by Microsoft for the same.
below are instructions i put-up for someone else.

1. Download link for the tool -
http://www.microsoft.com/en-us/download/details.aspx?id=28763[^]


2. Download the license key to enable the tool.
http://www.microsoft.com/download/en/details.aspx?id=18589[^]

3. Launch the downloaded tool and specify the location of the license key downloaded in step 2

4. follow the wizard to transfer the objects from Access to SQL Server#


I tried with a small MDB at my end and it was straight forward.
Hope this helps.


Cheers


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

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