Script Errors

Hi,

I’m running your SQL Permissions Extractor and the first time it worked fine, but on the next set of databases, it generates the script, but when I go to run it on the new server, I get the following:

Msg 156, Level 15, State 1, Line 17
Incorrect syntax near the keyword ‘EXEC’.
Msg 156, Level 15, State 1, Line 189
Incorrect syntax near the keyword ‘EXEC’.
Msg 156, Level 15, State 1, Line 205
Incorrect syntax near the keyword ‘EXEC’.
Msg 102, Level 15, State 1, Line 296
Incorrect syntax near ‘END’.

SQL Server Management Studio says “Incorrect Syntax near ‘EXEC’. Expecting CONVSERSATION.

Any ideas on how to fix this?

Thanks,
Roger