Fixing issue where SET ANSI NULL ON is appended to end of stored procedures