Completed SQL script exec generation