IF  NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[PG_CRED_CONTROLE]') AND name = N'IX_PG_CRED_CONTROLE')
BEGIN 
ALTER TABLE dbo.PG_CRED_CONTROLE ADD CONSTRAINT
	IX_PG_CRED_CONTROLE UNIQUE NONCLUSTERED 
	(
	CD_PG_CRED,
	CD_FILIAL,
	CD_EMP
	) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
end