How can I see what line a stored-procedure is on?

A. With SQL 6.5 you can use the following method

dbcc traceon(3604)
dbcc pss (suid, spid, 0)

Look in the output for a pline parameter - this shows the current line of the stored-procedure.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.