【问题标题】:Failure to debug T-SQL or stored procedures无法调试 T-SQL 或存储过程
【发布时间】:2011-08-23 03:39:26
【问题描述】:

Sql Server 2008 SP2

在 Management Studio 2008 中在任何 T-SQL 上设置断点并按下调试按钮后:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Failed to start debugger

------------------------------
ADDITIONAL INFORMATION:

Data is Null. This method or property cannot be called on Null values. (System.Data)

------------------------------
BUTTONS:

OK
------------------------------

按确定后。

---------------------------
Microsoft SQL Server Management Studio
---------------------------
Unable to start program 'MSSQL:://(local)/master/sys/=0'.

---------------------------
OK   
---------------------------

在 Visual Studio 2010 中

---------------------------
Microsoft Visual Studio
---------------------------
The Transact-SQL debugging session could not be started on the remote host. Verify that the instance of SQL Server is configured to enable Transact-SQL debugging.
---------------------------
OK   
---------------------------

按照其他线程中的建议将 SP2 应用于 SQL Server 2008,但未成功。服务器实际上是 (local) ,不知道为什么 Visual Studio 将其报告为远程。

【问题讨论】:

  • 我认为您需要确保 DTC 已安装和配置...它是在 SSMS 中启用调试的原因...

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


【解决方案1】:

检查您运行调试器的帐户是否是系统管理员角色的成员

此外,如果您正在运行 Windows 防火墙,则需要将端口添加到规则列表中

查看此链接了解更多详情

http://technet.microsoft.com/en-us/library/cc646024.aspx

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-03
    • 2013-05-28
    • 2011-08-03
    • 1970-01-01
    • 1970-01-01
    • 2017-08-04
    • 2011-11-28
    • 1970-01-01
    相关资源
    最近更新 更多