IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PDV_VD_INTEGRACAO]') AND type in (N'U')) 
begin 
CREATE TABLE [dbo].[PDV_VD_INTEGRACAO]( 
[CD_CTR] [bigint] IDENTITY(1,1) NOT NULL, 
[CD_EMP] [int] NOT NULL, 
[CD_FILIAL] [int] NOT NULL, 
[CD_VD] [int] NOT NULL, 
[CD_RETORNO] [int] NOT NULL, 
[DS_RETORNO] [varchar](500) NULL, 
[STATUS] [int] NOT NULL, 
[DT_CAD] [datetime] NULL DEFAULT (getdate()), 
CONSTRAINT [PK_PDV_VD_INTEGRACAO] 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