Tables [dbo].[MSSDocumentExternalContent]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:18:05 AM Friday, November 8, 2024
Last Modified9:19:33 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_MSSDocumentExternalContent: MSSDocumentExternalContentIDIndexes IX_MSSDocumentExternalContent_IntegratorKeyID_ExternalDocumentID_MSSDocumentExternalContentID: IntegratorKeyID\ExternalDocumentID\MSSDocumentExternalContentIDMSSDocumentExternalContentIDint4
No
1 - 1
Foreign Keys FK_MSSDocumentExternalContent_MSSDocument: [dbo].[MSSDocument].MSSDocumentFIDIndexes IX_MSSDocumentExternalContent_MSSDocument: MSSDocumentFIDMSSDocumentFIDint4
No
Indexes IX_MSSDocumentExternalContent_IntegratorKeyID_ExternalDocumentID_MSSDocumentExternalContentID: IntegratorKeyID\ExternalDocumentID\MSSDocumentExternalContentIDIntegratorKeyIDnvarchar(4)8
No
CreationDateUtcdatetime8
No
(getutcdate())
Indexes IX_MSSDocumentExternalContent_IntegratorKeyID_ExternalDocumentID_MSSDocumentExternalContentID: IntegratorKeyID\ExternalDocumentID\MSSDocumentExternalContentIDExternalDocumentIDnvarchar(64)128
No
ErrorCodeint4
No
ErrorMessagevarchar(255)255
Yes
DocumentContentUrlnvarchar(1000)2000
Yes
DocumentContentHttpMethodvarchar(7)7
Yes
IsMssDocumentbit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_MSSDocumentExternalContent: MSSDocumentExternalContentIDPK_MSSDocumentExternalContentMSSDocumentExternalContentID
Yes
IX_MSSDocumentExternalContent_IntegratorKeyID_ExternalDocumentID_MSSDocumentExternalContentIDIntegratorKeyID, ExternalDocumentID, MSSDocumentExternalContentID
Yes
IX_MSSDocumentExternalContent_MSSDocumentMSSDocumentFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_MSSDocumentExternalContent_MSSDocumentMSSDocumentFID->[dbo].[MSSDocument].[MSSDocumentID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MSSDocumentExternalContent]
(
[MSSDocumentExternalContentID] [int] NOT NULL IDENTITY(1, 1),
[MSSDocumentFID] [int] NOT NULL,
[IntegratorKeyID] [nvarchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreationDateUtc] [datetime] NOT NULL CONSTRAINT [DF_MSSDocumentExternalContent_CreationDateUtc] DEFAULT (getutcdate()),
[ExternalDocumentID] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ErrorCode] [int] NOT NULL,
[ErrorMessage] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentContentUrl] [nvarchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentContentHttpMethod] [varchar] (7) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsMssDocument] [bit] NOT NULL CONSTRAINT [DF_MSSDocumentExternalContent_IsMssDocument] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MSSDocumentExternalContent] ADD CONSTRAINT [PK_MSSDocumentExternalContent] PRIMARY KEY CLUSTERED  ([MSSDocumentExternalContentID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_MSSDocumentExternalContent_IntegratorKeyID_ExternalDocumentID_MSSDocumentExternalContentID] ON [dbo].[MSSDocumentExternalContent] ([IntegratorKeyID], [ExternalDocumentID], [MSSDocumentExternalContentID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_MSSDocumentExternalContent_MSSDocument] ON [dbo].[MSSDocumentExternalContent] ([MSSDocumentFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MSSDocumentExternalContent] ADD CONSTRAINT [FK_MSSDocumentExternalContent_MSSDocument] FOREIGN KEY ([MSSDocumentFID]) REFERENCES [dbo].[MSSDocument] ([MSSDocumentID])
GO
GRANT SELECT ON  [dbo].[MSSDocumentExternalContent] TO [MssExec]
GRANT INSERT ON  [dbo].[MSSDocumentExternalContent] TO [MssExec]
GRANT DELETE ON  [dbo].[MSSDocumentExternalContent] TO [MssExec]
GRANT UPDATE ON  [dbo].[MSSDocumentExternalContent] TO [MssExec]
GO
Uses