IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EST_TRIB_ALIQ_ICMS]')) 
	BEGIN 
		RETURN;
	END
ELSE
	BEGIN
		CREATE TABLE [dbo].[EST_TRIB_ALIQ_ICMS](
			[UF_ORIG] VARCHAR(2) NOT NULL,
			[UF_DEST] VARCHAR(2) NOT NULL,
			[ALIQ_ICMS] MONEY NOT NULL,	
		 CONSTRAINT [PK_EST_TRIB_ALIQ_ICMS] PRIMARY KEY CLUSTERED 
		(
			[UF_ORIG] ASC,
			[UF_DEST] ASC
		)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
		) ON [PRIMARY]
		
		ALTER TABLE [dbo].[EST_TRIB_ALIQ_ICMS] ADD  CONSTRAINT [DF_EST_TRIB_ALIQ_ICMS]  DEFAULT ((0)) FOR [ALIQ_ICMS]
	END
	
GO