So we have a script (that was generated from the SQL Schema compare in Visual Studio).
However it's failing on certain ones (because for whatever reason the database upgrade contains constraints that it wasnt supposed to)
So the drop constraints are failing because the constraints don't even exist.
So pretty much this:
ALTER TABLE [dbo].[ZONE] DROP CONSTRAINT [DF_ZONE_EXCLUDE];
GO
ALTER TABLE [dbo].[ZONE_NUMS] DROP CONSTRAINT [DF_ZONE_NUMS_ZONE_WORK];
GO
For example will run the ZONE drop constraint, but will fail on the ZONE_NUMS drop constraint (Saying ZONE_NUMS constraint doesn't exist when it tries to drop). And there are like 500 of these.......all in one big block (produced from the generate upgrade script)
Is there any way for it to continue running instead of stopping the script if it hits on it tries to drop and doesn't exist?
Thanks