For example. I have a database upgrade script for adding a column to a database table. It looks a little like this:
IF NOT Exists(SELECT * FROM SysColumns sc
RAISERROR ('column already exists',0,1) with nowait
or
print 'column already exists'