Tables [dbo].[DocumentAutoDownloadRuleDetailHaulMode]
Properties
PropertyValue
Row Count (~)0
Created8:52:58 AM Thursday, December 5, 2024
Last Modified8:52:58 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_DocumentAutoDownloadRuleDetailHaulMode: DocumentAutoDownloadRuleDetailHaulModeIDDocumentAutoDownloadRuleDetailHaulModeIDint4
No
1 - 1
Foreign Keys FK_DocumentAutoDownloadRuleDetailHaulMode_DocumentAutoDownloadRuleDetail: [dbo].[DocumentAutoDownloadRuleDetail].DocumentAutoDownloadRuleDetailFIDIndexes IX_DocumentAutoDownloadRuleDetailHaulMode_RuleDetail: DocumentAutoDownloadRuleDetailFID\HaulModeFIDDocumentAutoDownloadRuleDetailFIDint4
No
Foreign Keys FK_DocumentAutoDownloadRuleDetailHaulMode_HaulMode: [dbo].[HaulMode].HaulModeFIDIndexes IX_DocumentAutoDownloadRuleDetailHaulMode_RuleDetail: DocumentAutoDownloadRuleDetailFID\HaulModeFIDIndexes IX_DocumentAutoDownloadRuleDetailHaulMode_HaulMode: HaulModeFIDHaulModeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DocumentAutoDownloadRuleDetailHaulMode: DocumentAutoDownloadRuleDetailHaulModeIDPK_DocumentAutoDownloadRuleDetailHaulModeDocumentAutoDownloadRuleDetailHaulModeID
Yes
IX_DocumentAutoDownloadRuleDetailHaulMode_RuleDetailDocumentAutoDownloadRuleDetailFID, HaulModeFID
Yes
IX_DocumentAutoDownloadRuleDetailHaulMode_HaulModeHaulModeFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_DocumentAutoDownloadRuleDetailHaulMode_DocumentAutoDownloadRuleDetailCascadeDocumentAutoDownloadRuleDetailFID->[dbo].[DocumentAutoDownloadRuleDetail].[DocumentAutoDownloadRuleDetailID]
FK_DocumentAutoDownloadRuleDetailHaulMode_HaulModeCascadeHaulModeFID->[dbo].[HaulMode].[HaulModeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[DocumentAutoDownloadRuleDetailHaulMode]
(
[DocumentAutoDownloadRuleDetailHaulModeID] [int] NOT NULL IDENTITY(1, 1),
[DocumentAutoDownloadRuleDetailFID] [int] NOT NULL,
[HaulModeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailHaulMode] ADD CONSTRAINT [PK_DocumentAutoDownloadRuleDetailHaulMode] PRIMARY KEY CLUSTERED  ([DocumentAutoDownloadRuleDetailHaulModeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DocumentAutoDownloadRuleDetailHaulMode_RuleDetail] ON [dbo].[DocumentAutoDownloadRuleDetailHaulMode] ([DocumentAutoDownloadRuleDetailFID], [HaulModeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentAutoDownloadRuleDetailHaulMode_HaulMode] ON [dbo].[DocumentAutoDownloadRuleDetailHaulMode] ([HaulModeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailHaulMode] ADD CONSTRAINT [FK_DocumentAutoDownloadRuleDetailHaulMode_DocumentAutoDownloadRuleDetail] FOREIGN KEY ([DocumentAutoDownloadRuleDetailFID]) REFERENCES [dbo].[DocumentAutoDownloadRuleDetail] ([DocumentAutoDownloadRuleDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailHaulMode] ADD CONSTRAINT [FK_DocumentAutoDownloadRuleDetailHaulMode_HaulMode] FOREIGN KEY ([HaulModeFID]) REFERENCES [dbo].[HaulMode] ([HaulModeID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[DocumentAutoDownloadRuleDetailHaulMode] TO [MssExec]
GRANT INSERT ON  [dbo].[DocumentAutoDownloadRuleDetailHaulMode] TO [MssExec]
GRANT DELETE ON  [dbo].[DocumentAutoDownloadRuleDetailHaulMode] TO [MssExec]
GRANT UPDATE ON  [dbo].[DocumentAutoDownloadRuleDetailHaulMode] TO [MssExec]
GO
Uses