IF  EXISTS (SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[PG_CRED_NF]') AND name = N'PK_PG_CRED_NF')
BEGIN
	ALTER TABLE [dbo].[PG_CRED_NF] DROP CONSTRAINT [PK_PG_CRED_NF]
END
GO

ALTER TABLE [dbo].[PG_CRED_NF] ADD  CONSTRAINT [PK_PG_CRED_NF] PRIMARY KEY CLUSTERED 
(
	[CD_EMP] ASC,
	[CD_FILIAL] ASC,
	[NR_DP] ASC,
	[ANO] ASC,
	[NR_NF] ASC,
	[CD_NF] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO








