如何在 SQL Server Management Studio 中管理 SQL CE 数据库? [英] How can I manage SQL CE databases in SQL Server Management Studio?

查看:31
本文介绍了如何在 SQL Server Management Studio 中管理 SQL CE 数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Visual Studio 2008(添加/新项目/本地数据库)创建了一个 SDF (SQL CE) 数据库.

I created a SDF (SQL CE) database with Visual Studio 2008 (Add / New Item / Local Database).

是否可以使用 SQL Server Management Studio 编辑此数据库?我尝试附加它,但它只提供 .mdf 并附加 .sdf 文件导致无法检索此请求的数据".

Is it possible to edit this database with SQL Server Management Studio? I tried to attach it but it only offered .mdf and attaching a .sdf file results in "failed to retrieve data for this request".

如果是,是否也可以使用 Management Studio 创建 SDF 文件?还是我们被 Visual Studio 2008 数据库管理器的简单界面困住了?

If so, is it possible to create SDF files with Management Studio as well? Or are we stuck with the simple interface of the Visual Studio 2008 database manager?

推荐答案

您可以使用 SQL Server 2008 Management Studio 创建 .sdf 文件.

You can create .sdf files with SQL Server 2008 Management Studio.

在文件">连接对象资源管理器"对话框中,将服务器类型下拉列表更改为 SQL Server Compact Edition.

In the File > Connect Object Explorer dialog, change the Server Type dropdown to SQL Server Compact Edition.

然后在数据库文件"下拉列表中选择新建数据库....",您就可以开始使用了.

Then in the Database File dropdown choose New Database.... and you're ready to go.

这篇关于如何在 SQL Server Management Studio 中管理 SQL CE 数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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