I am creating a large script to do a bunch of inserts and updates. When I run it, I get some errors, but the error messages do not allow me to identify the problem - the line numbers since the last "GO", so I can not find the correct line.
I want to add calls to my script to a function in T-SQL that will simply be written to the results window, so I would better understand where the error occurs.
Old man
source share