MDB转换到SQL Server [英] Convert Mdb to Sql Server

查看:376
本文介绍了MDB转换到SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#或其他语言的MDB访问文件转换为SQL Server的?
我发现的在MSDN文章。但是,我不能明白。

How can i convert mdb access file to sql server using c# or other languages? I found an article in msdn. But, i couldnt understand.

感谢。

推荐答案

创建SQL Server数据库,然后使用集成服务来转换数据。这是有道理的在此之前彻底检讨数据库设计。用于Jet进行设计并不一定是SQL Server的最好的一个。

Create your SQL Server database and then use Integration Services to transform the data. It makes sense to review the database design thoroughly before doing this. A design made for Jet won't necessarily be the best one for SQL Server.

编辑:我没有提到另外一个显著的差异。喷气/ ACE强制空的外键时,插入一个空,而SQL Server的如下这就要求空在外键约束(约束没有被破坏)忽视了SQL标准。如果你有空的外键那么我强烈建议你重新设计,这样就可以使他们不可为空在SQL Server(通过移动列(县),例如一个新的表)。

I failed to mention one other significant difference. Jet/ACE enforces nullable foreign keys when a null is inserted, whereas SQL Server follows the SQL standard which requires that nulls are ignored in foreign key constraints (the constraint isn't violated). If you have nullable foreign keys then I highly recommend you redesign so that you can make them non-nullable in SQL Server (by moving the column(s) to a new table for example).

这篇关于MDB转换到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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