Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BEGIN...END Error
Message
General information
Forum:
Microsoft SQL Server
Category:
Scripting
Miscellaneous
Thread ID:
01324921
Message ID:
01325040
Views:
16
>>IF I comment-out the PRINT line in the code below, I get this error:
>>
>>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.


I didn't knew that!
Thank you!
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform