>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 >SQL doesn't like a begin..end block with no executable statements. Odd but true.