I am generating a script for automatically migrating changes from multiple development databases to staging/production. Basically, it takes a bunch of change-scripts, and m
You may try this solution:
if exists( SELECT... ) BEGIN PRINT 'NOT RUN' RETURN END --if upper code not true ALTER... GO UPDATE... GO