【问题标题】:Visual Studio 2010 Database Browser won't connect to SQL Server consistantlyVisual Studio 2010 数据库浏览器无法始终连接到 SQL Server
【发布时间】:2012-02-19 17:43:56
【问题描述】:

我在这里查看了其他类型的类似问题,但似乎没有一个对我有用的答案。我对收到的错误消息感到困惑 - 它是一个数据库 - 它应该允许多个进程访问它。拥有数据库还有什么意义?!?

好的。再次找回我的禅意……

Environment:
  Visual Studio 2010 Express (C# in this particular case)
  SQL Server 2012 R0 set up for windows authentication
  i7 based PC, 8 cores, 16GB RAM, Windows 7 Pro x64

我有一个用几个简单表创建的数据库。我知道 MDF 文件在哪里。我可以通过 SQL Server Management Studio 访问它。

这是微软说要做的事情:http://msdn.microsoft.com/en-us/library/ms171890.aspx

第 9 步失败并显示文件正在使用中的错误。而已。没有办法超过这一点。为什么没有办法指示 SQL Server - 为什么我必须转到文件?该文件是否应该与正在运行的 SQL Server 进程完全断开?这有什么意义?这简直太疯狂了——其他进程应该如何达到它?这不是拥有数据库的意义吗?老子不服!

理论 - 这就是微软想让我从 Express 升级到我支付的东西的方式。 [插入强制性的关于微软的白胡子抱怨]。我注意到在 Visual Studio 中支付 数据库浏览器被服务器浏览器取代……我闻到了鱼的味道。

Before you answer:
  Yes. I turned it off then on again.
  Yes. I uninstalled then reinstalled the database.
  Yes. I did that other thing you suggest to users you normally don't trust to flip
    on a light switch correctly.
  Yes. This facility was cleared out of voodoo, gremlins and black cats ages ago.
    There is plenty of natural sunlight so the bastards aren't coming back.

【问题讨论】:

    标签: sql sql-server visual-studio-2010 tsql sql-server-2012


    【解决方案1】:

    我找到了答案。这并不难,但解决方案隐藏在一个棘手的地方!您必须打开 Visual Web Developer,在那里打开您的解决方案,然后添加一个 LINQ to SQL 类。 Web Developer 可以访问 SQL Server。一旦设置,它应该很容易使用。

    更多详情请看这里!

    Connecting to SQL Server with Visual Studio Express Editions

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-09
      • 2010-10-05
      相关资源
      最近更新 更多