[dbo].[XmlSystemCredential]
CREATE TABLE [dbo].[XmlSystemCredential]
(
[XmlSystemCredentialId] [int] NOT NULL IDENTITY(1, 1),
[XmlSystemFID] [int] NOT NULL,
[UserID] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Password] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Cert] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CertLastUpdated] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemCredential] ADD CONSTRAINT [PK_XmlSystemCredential] PRIMARY KEY CLUSTERED ([XmlSystemCredentialId]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_XmlSystemCredential_XmlSystem] ON [dbo].[XmlSystemCredential] ([XmlSystemFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemCredential] ADD CONSTRAINT [FK_XmlSystemCredential_XmlSystem] FOREIGN KEY ([XmlSystemFID]) REFERENCES [dbo].[XmlSystem] ([XmlSystemID])
GO
GRANT SELECT ON [dbo].[XmlSystemCredential] TO [MssExec]
GRANT INSERT ON [dbo].[XmlSystemCredential] TO [MssExec]
GRANT DELETE ON [dbo].[XmlSystemCredential] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlSystemCredential] TO [MssExec]
GO