无法在 VS2008 中加载数据库项目

发布于 2024-07-30 11:12:00 字数 391 浏览 2 评论 0原文

我有一个无法在 VS2008 中加载的数据库项目,并且我的计算机上安装了 SQL Server 2008 Express 版本。

当我尝试加载时,我收到以下错误消息

数据库项目需要连接 到 Microsoft SQL 的本地实例 设计时使用 Server 2005 验证。 要执行此操作, 您必须打开“工具”菜单,单击 选项并指定 SQL 实例 正在运行的 Server 2005 您可以在数据库中连接 工具、设计时验证数据库 属性页。 当这一点得到纠正时, 然后您必须刷新或重新加载 数据库项目。

有任何建议/更新来解决这个问题吗?

I have Database project which I'm unable to load in VS2008 and I have SQL Server 2008 Express edition installed on my machine..

I get following error message, when I try to load

Database projects require a connection
to a local instance of Microsoft SQL
Server 2005 for design-time
validation. To perform this operation,
you must open the Tools menu, click
Options and specify an instance of SQL
Server 2005 that is running and to
which you can connect in the Database
Tools, Design-time Validation Database
property page. When that is corrected,
you must then refresh or reload the
database project.

Any suggestions/update to solve this issue?

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

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

发布评论

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

评论(2

鸵鸟症 2024-08-06 11:12:00
  • 您没有提及是否安装了 VS2008 SP1,但这是 Visual Studio 中 SQL Server 2008 支持的要求 (KB956139)
  • 您验证实例名称是否正确? 工具> 选项> 数据库工具> 数据连接-> SQL Server 实例名称:SQLEXPRESS(或您在安装过程中选择的名称)
  • 您的实例是否接受远程连接? (我的总是这样做,不确定是否需要)(来源)
  • You don't mention if you have VS2008 SP1 installed, but this is a requirement for SQL Server 2008 support in Visual Studio (KB956139)
  • Did you verify your instance name is correct? Tools > Options > Database Tools > Data Connections -> SQL server instance name: SQLEXPRESS (or the name you chose during install)
  • Does your instance accept remote connections? (mine always does, not sure if this is required) (Source)
聽兲甴掵 2024-08-06 11:12:00

我知道这是一个旧线程,但是......

你能让这个组合工作吗? Visual Studio 2008 与 SQL Server Express 2008? 我遇到了同样的问题,无论我在“工具”->“选项”->“数据库工具”框中的实例字段中输入什么,它都说我没有输入它们。

从我在互联网上找到的信息来看,一切都表明只要安装了 SP1,SQL Server Express 2008 就应该可以与 Visual Studio 2008 一起使用。 我尝试重新安装 SP1,但收到相同的错误 - “未指定实例”。

因此,我下载并安装了 SQL Express 2005 x64 并指定了新的实例名称 SQLEXPRESS2005。 然后我将其插入 Visual Studio 2008 的设置中,它立即开始工作。

I know this is an old thread, but...

Were you able to get this combination working? Visual Studio 2008 with SQL Server Express 2008? I had the same issue that no matter what I entered into the instance fields in the Tools->Options->Database Tools boxes, it said I did not have them entered.

From what I could find on the interwebs, everything indicated that SQL Server Express 2008 should work with Visual Studio 2008 as long as you have the SP1 installed. I tried reinstalling SP1, but received the same error - "no instance specified".

So I downloaded and installed SQL Express 2005 x64 and specified a new instance name, SQLEXPRESS2005. Then I plugged that into Visual Studio 2008's settings and it worked right away.

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