从 Visual Studio 2010 创建 .MDF 文件的问题 [英] Problem with creating .MDF file from Visual Studio 2010
问题描述
我正在尝试使用 mdf 创建一个小型 wpf 应用程序.
I am trying to create a small wpf application by using mdf.
问题是,当我尝试添加新的基于服务的数据库 (.mdf) 时,出现错误连接到 SQL Server 数据库文件 (.mdf) 需要 SQL Server 2005 Express 或 SQL Server 2008 Express已在本地计算机上安装并运行.当前版本的 SQL Server Express 可通过以下网址(链接)下载.
The problem is that when I am trying to add new service-based database (.mdf) I am getting the error "Connection to SQL Server database files (.mdf) require SQL Server 2005 Express or SQL Server 2008 Express to be installed and running on the local computer. The current version of SQL Server Express can be downloaded at the following url (link)".
已经安装了 SQL Server 2008.
The SQL Server 2008 is already been installed.
我做错了什么?
推荐答案
检查以确保 SQLExpress 服务正在运行.
Check to make sure the SQLExpress service is running.
从命令提示符:
sc query mssql$sqlexpress
如果返回的状态是1 STOPPED",则用
If the state returned is "1 STOPPED", then start the service with
sc start mssql$sqlexpress
这篇关于从 Visual Studio 2010 创建 .MDF 文件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!