
/****** Object:  Index [PK_EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP]    Script Date: 10/31/2013 14:48:43 ******/
IF  EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP]') AND name = N'PK_EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP')
ALTER TABLE [dbo].[EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP] DROP CONSTRAINT [PK_EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP]
GO

ALTER TABLE EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP ALTER COLUMN CD_LACRE INT NOT NULL
GO 

/****** Object:  Index [PK_EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP]    Script Date: 10/31/2013 14:48:46 ******/
ALTER TABLE [dbo].[EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP] ADD  CONSTRAINT [PK_EST_PROD_TRANSF_LACRE_IT_CHECKIN_ENTRADA_TMP] PRIMARY KEY CLUSTERED 
(
	[CD_EMP] 	ASC,
	[CD_FILIAL] ASC,
	[CD_CTR] 	ASC,
	[CD_LACRE] 	ASC,
	[NR_VOLUME]	ASC, 
	[CD_PROD]	ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
GO


