>Msg 156, Level 15, State 1, Line 233 >Incorrect syntax near the keyword 'FETCH'. >Msg 102, Level 15, State 1, Line 256 >Incorrect syntax near 'OFF'. >>
>IF @ProcessDocument = 'N' > > BEGIN > > -- Testing ONLY! > --PRINT 'Document Skipped: ' + @FirstFile > > END >I tried it and found, that you can not have empty BEGIN/END block. Comment the whole block out /* */ or Ctrl+K/Ctrl+C to put --