IF (NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'ciavend'))
BEGIN
	CREATE TABLE [dbo].[ciavend] (
	  [idciavend] [bigint] IDENTITY(1,1) NOT NULL PRIMARY KEY,
	  [idciaseg] [bigint]  NOT NULL,
	  [idramo] [bigint]  NOT NULL,
	  [idvendedor] [bigint]  NOT NULL);
END