0

我想在App_Data文件夹中创建一个 SQL Server 数据库,但弹出警报说:

与 SQL Server 数据库文件 (.mdf) 的连接需要在本地计算机上安装和运行 SQL Server 2005 Express 或 SQL Server 2008 Express

在此处输入图像描述

但我已经安装了这个:

在此处输入图像描述

那有什么问题?我需要帮助:/

4

1 回答 1

1

You need the SQL Server Express, not the normal (non-express) one.

Quoting this thread on MSDN social:

In particular, SSE has a number of options turned on that are typically not on in higher versions of SQL Server. You could turn them on but wouldn't want to if you are using SQL Server as a general server, not a local database store. In addition, there is some behavior that is unique to SSE that is particular to the way local database stores are used. But, to be quite clear, it is exactly the same .exe.

Have a look at this SO thread, too: Problem with creating .MDF file from Visual Studio 2010

于 2012-07-06T08:49:12.647 回答