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
------------------------------
按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
---------------------------
其他主题中的后续建议为SQL Server 2008应用SP2但未成功。服务器实际上是(本地的),不知道Visual Studio为什么将其报告为远程服务器。
答案 0 :(得分:0)
检查运行调试程序的帐户是否为sysadmin角色的成员
此外,如果您运行的是Windows防火墙,则需要将端口添加到规则列表
查看此链接了解更多详情