Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BEGIN...END Error
Message
 
 
À
17/06/2008 16:38:33
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Scripting
Divers
Thread ID:
01324921
Message ID:
01324923
Vues:
11
>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
>
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 --
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform