IF EXISTS
(
    SELECT *
    FROM sys.sysobjects
    WHERE name = 'SMS_Prefixes'
          AND xtype = 'U'
)
    DROP TABLE [dbo].SMS_Prefixes;


IF EXISTS(SELECT Name FROM Sysobjects WHERE Name = 'SMS_Prefixes')
DROP VIEW SMS_Prefixes
