I have some SQL code that needs to be executed if a certain View exists in a database. How would I go about checking if the View exists?
EDIT: The DBMS being used is Microsoft SQL Server
FOR SQL SERVER
IF EXISTS(select * FROM sys.views where name = '')