sql server if view exists drop code example Example: sql drop view if exists DROP VIEW IF EXISTS yourview;