简体   繁体   English

使用VS Express将SQL Server导出到SQL Server Compact 4.0

[英]Export SQL Server to SQL Server Compact 4.0 with VS Express

I have created a C# application that connects to a Microsoft SQL Server Express Edition (64-bit) database. 我创建了一个连接到Microsoft SQL Server Express Edition(64位)数据库的C#应用​​程序。 However, I want to transition the project from SQL Server to a local database and convert the .mdf file to a .sdf file. 但是,我想将项目从SQL Server转换到本地数据库,并将.mdf文件转换为.sdf文件。

The best solution I have found is SQL Server Compact Toolbox written by ErikEJ also pointed out by this post . 我发现的最佳解决方案是ErikEJ编写的SQL Server Compact Toolbox也在这篇文章中指出。 When attempting to install the add-in to Visual Studio I receive an error: 尝试将加载项安装到Visual Studio时,我收到错误:

This extension is not installable on any currently installed products. 此扩展程序无法安装在任何当前安装的产品上。

even though the installer recognizes that Microsoft Visual Studio Express 2012 for Windows Desktop is installed. 即使安装程序确认已安装Microsoft Visual Studio Express 2012 for Windows桌面。 I believe this is only targeted for Professional and above. 我相信这只是专业及以上的目标。

I have also attempted to use the standalone tool. 我还尝试使用独立工具。 However, the option I want is grayed out and it's for version 3.5 instead of the current version 4.0. 但是,我想要的选项是灰色的,它是版本3.5而不是当前版本4.0。

在此输入图像描述

I have also looked at trying to export/convert from Microsoft SQL Server Management Studio 11.0.3128.0. 我还看了尝试从Microsoft SQL Server Management Studio 11.0.3128.0导出/转换。 However, I have had no luck. 但是,我没有运气。

Is there a solution for VS Express Edition, or am I out of luck? 是否有VS Express Edition的解决方案,或者我运气不好?

只需使用SQL Server Compact 4.0的独立版,可在此处获取: https//sqlcetoolbox.codeplex.com/releases/view/104096

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM