Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF BEGIN END confusion
Message
From
16/06/2008 09:27:06
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
IF BEGIN END confusion
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01324368
Message ID:
01324368
Views:
56
The PRINT statement executes:
IF @Filename LIKE '%.tiff%'

	PRINT @Filename

	BEGIN

		Some code here

	END
The PRINT statement does NOT execute:
IF @Filename LIKE '%.tiff%'

	BEGIN

		PRINT @Filename
		Some code here

	END
Why?
Next
Reply
Map
View

Click here to load this message in the networking platform