Don't convert and copy SQL scripts into a specific programing language string using “by hand” modifications. Try ApexSQL Refactor instead.