I need to perform a search and replace operation on hundreds of SQL script files. The idea is to transform this:
USE [DB]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/* comments xxxx */
ALTER PROCEDURE ....
BEGIN
...
END
Into this:
ALTER PROCEDURE ....
BEGIN
...
END
To do this I would use Notepad++. I want to remove anything before ALTER PROCEDURE
. How can I achieve that?