I have Visual Studio .Net project which uses ADO connection to call stored procedure of SQL Server database.
It is possible to set a breakpoing at stored procedure and debug it. I have local SQL Server and SQL Enterprise Edition installed.
I have Visual Studio .Net project which uses ADO connection to call stored procedure of SQL Server database.
It is possible to set a breakpoing at stored procedure and debug it. I have local SQL Server and SQL Enterprise Edition installed.
AFAIK, and if you are talking about an actual t-sql stored procedure, Your best bet will be:
There are a couple options i have heard of for debugging stored procs- eg: Direct Database Debugging.
here is a link from a good article i found explaining some of these: Stored Proc Debugging Methods
You can debug CLR procedures and functions from VS, see Debugging SQL
Transact-SQL is a different story, it needs special configuration steps and can be debugged from a special tool, see Using the Transact-SQL Debugger.
I would strongly suggest that you take a look at the built in tooling in SQL management studio.
i have written a pretty detailed blog post about it here:
basically the gist of it is that you enter you sql query to execute your stored procedure, and instead of pressing F5 or hitting the exclamation, you hit the play button and use F10 and F11 to step through and step into your stored procs.
very very handy - and no one seems to use it.