Consider the part of the SQL script as follows:
IF OBJECT_ID('dbo.tableName', 'U') IS NOT NULL ALTER TABLE [dbo].[tableName] DROP CONSTRAINT PK_tableName DROP TABLE dbo.tableName
If tableName exists, are all three rows executed? How about the rest of my script further down (not included - creates a table); Is there a way to limit how many lines are executed after an IF ? I can not find the answer to this question, since this is a rather ambiguous search.
Mr jf source share