Possible to get the line number of the currently executing sproc in SQL Server?
Posted
by
Ian Kemp
on Stack Overflow
See other posts from Stack Overflow
or by Ian Kemp
Published on 2010-12-28T23:24:08Z
Indexed on
2010/12/28
23:53 UTC
Read the original article
Hit count: 274
A few years back I worked in a Sybase/Delphi environment, using the BDE to connect to the DB server. We had a little Delphi app that, given the name of a currently executing stored procedure, could tell you what line of that sproc was currently being executed. This was exceptionally useful for debugging sprocs that seemed to be hanging.
I'd like to use this functionality in SQL Server, but I can't remember whether it was a Sybase or a BDE feature. Is this functionality available in SQL Server and if so, what command(s) do I need to use to view this information?
© Stack Overflow or respective owner