How can I step into a SQL Server stored proc from my C# code?

后端 未结 4 2217
故里飘歌
故里飘歌 2020-12-13 18:37

I am debugging some C# code that uses Ado.net to call a stored proc (TSQL) in SQL Server. How can I step into the stored proc?

(I think I have seen this demoed by

4条回答
  •  隐瞒了意图╮
    2020-12-13 19:07

    For those of you who are using VS 2012 and are confused as to why you cannot enable SQL/CLR Debugging from the Server Explorer window, you actually need to connect via the "SQL Server Object Explorer" window.

    Once you have the connection in that window, the Allow SQL/CLR Debugging and Application Debugging setting appear on the right-click context menu of your server. This probably applies to 2013 as well but I cannot confirm.

提交回复
热议问题