How can I get the actual stored procedure line number from an error message?
IIRC, it starts counting lines from the start of the batch that created that proc. That means either the start of the script, or else the last “GO” statement before the create/alter proc statement. An easier way to see that is to pull the actual text that SQL Server used when creating the object. Switch … Read more