IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PDV_VD_INTEGRACAO_PENDENTE]') AND type in (N'U')) 
begin 
CREATE TABLE [dbo].[PDV_VD_INTEGRACAO_PENDENTE]( 
[CD_CTR] [bigint] IDENTITY(1,1) NOT NULL, 
[CD_EMP] [int] NOT NULL, 
[CD_FILIAL] [int] NOT NULL, 
[CD_VD] [int] NOT NULL, 
[STATUS] [int] NOT NULL, 
[DT_CAD] [datetime] NULL DEFAULT (getdate()), 
CONSTRAINT [PK_PDV_VD_INTEGRACAO_PENDENTE] PRIMARY KEY CLUSTERED 
( 
[CD_CTR] ASC 
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] 
) ON [PRIMARY] 
end 