t-sql delete view if exists
snippet in sql

t-sql delete view if exists

user9610

if exists(select 1 from sys.views where name='tst' and type='v')
drop view tst;
go

create view tst
as
select * from test