Debugging T-SQL Stored Procedure from running VS-Application

Hi,

I know, that I can step into a stored procedure, and debug it from within visual studio. But I haven't figured out yet, how I can get Visual Studio to stop at a break point, when my actual *project code* called this stored procedure, so that I can see what parameters my program passed to the SP.

I suppose, I have to attach the T-SQL-debugger somehow (But I don't really know).

Does anybody know, how that works

Thanks,

Klaus


Answer this question

Debugging T-SQL Stored Procedure from running VS-Application

  • AndyWawa

    Thanks Habibh - I looked for exactly that, but obviously at the wrong place! ;-)

    - Klaus

  • Fuzzier

    You need to enable SQL debugging in the project properties. Open the Project Properties for you project and check the "Enable SQL Server debugging" under the Debug tab.

    HabibH.


  • Debugging T-SQL Stored Procedure from running VS-Application