IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'DBO.PDV_VD_DEV_NCC_PDV_VD_LINX_PROMO') AND TYPE IN (N'U'))
BEGIN
	CREATE TABLE DBO.PDV_VD_DEV_NCC_PDV_VD_LINX_PROMO(
		CD_CTR_NCC	INT NOT NULL,
		CD_EMP		INT NOT NULL,
		CD_FILIAL	INT NOT NULL,
		CD_VD		INT NOT NULL,
		CD_CX		INT NULL,
		DT_VD		DATETIME  NULL,
		NR_ECF		INT NULL,
		CONSTRAINT PK_PDV_VD_DEV_NCC_PDV_VD_LINX_PROMO PRIMARY KEY (CD_CTR_NCC)
	)
END

