Answers for "drop view if exists vs if object_id"

SQL
0

t-sql delete view if exists

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

create view tst
as
select * from test
Posted by: Guest on March-30-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language