SyntaxFix
Write A Post
Hire A Developer
Questions
I typically use something like this:
if exists (select * from dbo.sysobjects where id = object_id(N'dbo.MyView') and OBJECTPROPERTY(id, N'IsView') = 1) drop view dbo.MyView go create view dbo.MyView [...]