eitanblumin.com
Using SUBSTRING based on line number instead of character offset
Suppose we’re running one or more dynamic SQL commands in SQL Server, and we’re getting an error from somewhere within it. But, to make things interesting, let’s suppose that we&…