Edit sql script