Visual Studio 2008 Express 无法识别我的 Sql Server 2008 Express

发布于 2024-07-16 14:50:13 字数 701 浏览 3 评论 0原文

我最近按顺序安装:

Sql Server 2008 Express

Visual Web Developer Express 2008

当我右键单击 app_data 并尝试添加数据库时,它返回: 与 SQL Server 文件 (*.mdf) 的连接需要 SQL Server Express 2005 才能正常运行。 请验证组件的安装或从以下 URL 下载: http://go.microsoft.com/fwlink/?LinkId=49251

我最近刚刚重新安装了 Windows Vista,因为在安装 sql server 之前安装 Visual Web Developer 导致出现注册表问题。 这次相反的顺序似乎工作正常,直到我注意到这个问题。

我可以将 MDF 文件复制到 app_code 目录中,但这似乎并不能解决我的问题,因为单击数据库会返回相同的错误。

根据我从谷歌搜索中收集到的信息,此错误是由几个不同的安装路径发生的。 它可能与 2005 安装无关(我没有安装任何 Visual Studio 或 sql server 2005s)。 他们可能只是从未升级错误消息。 有谁知道如何解决这个问题? 如果可以解决问题,我不介意输入一些连接字符串。

I recently installed in order:

Sql Server 2008 Express

Visual Web Developer Express 2008

When I right click on app_data and try to add a db it returns:
Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the component or download from the URL:
http://go.microsoft.com/fwlink/?LinkId=49251

I just recently reinstalled windows vista due to registry problems from installing visual web developer before installing sql server. This time the reverse order seemed to work fine until I noticed this problem.

I can copy an MDF file into the app_code directory, but this doesn't seem to solve my problems, as clicking the DB returns the same error.

From what I've gathered from some googling, this error occurs from several different install paths. It probably has nothing to do with 2005 installs (I had not installed any visual studio or sql server 2005s). Its possible they just never upgraded the error message. Does anyone know how to get around this? I would not mind entering in some connection strings, if that will fix the issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦里泪两行 2024-07-23 14:50:13

它是 64 位 Vista(或者更确切地说,64 位 SQL Express 安装)吗? http://support. microsoft.com/default.aspx?scid=kb;en-us;957944&sd=rss&spid=12913

使用用于 Visual Studio 2008 集成的 64 位 SQL Express 引擎存在一个已知问题(并且很容易如果您使用 Web 引导程序单独安装 SQL Express,则会在您不知情的情况下发生这种情况 - 至少在我的系统上它安装了 64 位版本而根本没有告诉我)。

上面的链接基本上告诉您卸载所有 SQL Express 实例,然后安装您选择的 x86 SQL Express,它将开始正常工作。

Is it a 64bit Vista (or rather, 64bit SQL Express installation)? http://support.microsoft.com/default.aspx?scid=kb;en-us;957944&sd=rss&spid=12913

There is a known problem with having a 64bit SQL Express engine for Visual Studio 2008 integration (and it easily happens without your knowledge if you install the SQL Express separately using the web bootstrapper - atleast on my system it installed the 64bit version without telling me at all).

The link above basically tells you to uninstall all SQL Express instances, and then install the x86 SQL Express of your choice and it will start working correctly.

吻安 2024-07-23 14:50:13

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

Microsoft 支持知识中引用了两种解决此问题的方法基础文章

1。 解决方法

要解决此问题,请卸载
64 位版本的 SQL Server
Express 2008,然后安装
32 位版本的 SQL Server Express
2008年。

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

2. 修补程序

支持的修补程序现已推出
来自微软。 然而,它是
仅旨在纠正问题
本文所描述的。 应用它
仅适用于正在经历的系统
这个具体问题。

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

I ran into this problem too on 64-bit Windows 7 (using 64-bit SQL Server Express 2008).

There are two methods of fixing this problem referenced in the Microsoft Support Knowledge Base article:

1. Workaround

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.

If you don't want to do the uninstall/install, then try the Hotfix method below.

2. Hotfix

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.

Although the article itself doesn't include a link to the hotfix, you can get it here:
http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=957944

却一份温柔 2024-07-23 14:50:13

嗨,大卫,您是否确保 sql express 服务和 sql browser 服务都在运行? 您可以通过 Management Studio 连接到同一个 sql server Express 版本吗? 如果没有,那么这些服务可能没有在您的机器上运行

hi david are you ensuring that the sql express service as well as sql browser service both are running? can you connect to the same sql server express edition via management studio? if not then probably these services are not running on your box

静若繁花 2024-07-23 14:50:13

虽然我仍然收到 sql server 2005 错误,但这并没有阻止我做我需要做的事情。 在“数据库连接”选项卡中,将 MDF 与 Management Studio 分离后,我可以连接到 MDF。 如果需要,我还可以使用此选项卡的功能来创建新的数据库文件。

While I still get the sql server 2005 error, it hasn't stopped me from doing what I needed to do. In the "Database Connections" tab I am able to connect to the MDF after detaching it from Management Studio. I can also use this tab's function to create a new DB file if need be.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文