gpt4 book ai didi

sql-server - 为什么安装了 SQL Server 2008 Developer 后 Visual Studio 2008 无法创建 .mdf 文件?

转载 作者:行者123 更新时间:2023-12-02 07:00:49 25 4
gpt4 key购买 nike

我正在尝试一些 ASP.NET MVC 教程,其中一个教程具有以下步骤:

  • 右键点击“App_Data”文件夹,然后选择“添加新项目”
  • 在“数据”类别下选择“SQL Server 数据库”。

但是,一旦我这样做,我就会从 Visual Studio 收到以下消息:

Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function proprely. Please verify the installation of the component or download from the URL...

问题是,我安装了 SQL Server 2008 Developer Edition,如果不需要的话,我真的宁愿不安装任何 Express 版本(2005 或 2008)。这个问题有解决办法吗?

最佳答案

我在 64 位 Windows 7 上也遇到了这个问题(使用 64 位 SQL Server Express 2008)。

Microsoft Support Knowledge Base article 中引用了两种解决此问题的方法。 :

<强>1。解决方法

To work around this problem, uninstall the 64-bit version of SQL Server Express 2008, and then install the 32-bit version of SQL Server Express 2008.

如果您不想卸载/安装,请尝试下面的修补程序方法。

<强>2。修补程序

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

虽然文章本身不包含修补程序的链接,但您可以在此处获取: http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=957944

关于sql-server - 为什么安装了 SQL Server 2008 Developer 后 Visual Studio 2008 无法创建 .mdf 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/293281/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com