C# 将 Access 数据导入 SQL Server CE(.mdb 到 .sdf)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/481719/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 05:08:09  来源:igfitidea点击:

Import Access data into SQL Server CE (.mdb to .sdf)

c#.netsql-server-ce

提问by pro3carp3

I've found a few articles & discussions on how to import data from Access to SQL Server or SQL Server Express, but not to SQL Server CE. I can access both the the Access data and CE data in the VS database explorer with seperate connections, but don't know how to move the data from one to the other. (I'm using c#.) Any suggestions? Thanks.

我找到了一些关于如何将数据从 Access 导入 SQL Server 或 SQL Server Express,而不是 SQL Server CE 的文章和讨论。我可以通过单独的连接访问 VS 数据库资源管理器中的 Access 数据和 CE 数据,但不知道如何将数据从一个移动到另一个。(我正在使用 c#。)有什么建议吗?谢谢。

采纳答案by ctacke

回答by Christopher Edwards

You can do it using SSIS, or even in SQL Server Explorer if you are not looking to do it programmatically.

如果您不希望以编程方式执行此操作,则可以使用SSIS或什至在 SQL Server Explorer 中执行此操作。

回答by Johnny Blaze

you can also use the the "sql server migration wizard" to convert it to sql server database and the use this toolto convert it back to a .sdf database

您还可以使用“sql server 迁移向导”将其转换为 sql server 数据库,并使用此工具将其转换回 .sdf 数据库