I have a few hundred sql scripts where I need to delete 3 lines of codes and delete the very last line of code. The first 3 are:
DECLARE @dtStartCol datetime
DECLARE @dtEndCol datetime
DECLARE @dtLastUp datetime. The last line is garbage that was place in by accident.
All of these files are in 1 folder and ends with .sql.