 
/****** Object:  Index [PK_EST_PROD_TRANSF_LACRE_IT]    Script Date: 10/30/2013 17:07:57 ******/
IF  EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[EST_PROD_TRANSF_LACRE_IT]') AND name = N'PK_EST_PROD_TRANSF_LACRE_IT')
ALTER TABLE [dbo].[EST_PROD_TRANSF_LACRE_IT] DROP CONSTRAINT [PK_EST_PROD_TRANSF_LACRE_IT]
GO

ALTER TABLE [dbo].[EST_PROD_TRANSF_LACRE_IT] ALTER COLUMN LOTE VARCHAR(20) NOT NULL
GO

/****** Object:  Index [PK_EST_PROD_TRANSF_LACRE_IT]    Script Date: 10/30/2013 17:07:58 ******/
ALTER TABLE [dbo].[EST_PROD_TRANSF_LACRE_IT] ADD  CONSTRAINT [PK_EST_PROD_TRANSF_LACRE_IT] PRIMARY KEY CLUSTERED 
(
	[CD_EMP] ASC,
	[CD_FILIAL] ASC,
	[CD_CTR] ASC,
	[NR_LACRE] ASC,
	[NR_VOLUME] ASC,
	[CD_PROD] ASC,
	[LOTE] 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
 