Tables [dbo].[DocumentAutoUploadRuleDetailHaulMode]
Properties
PropertyValue
Row Count (~)0
Created9:05:45 AM Friday, November 22, 2024
Last Modified9:05:46 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_DocumentAutoUploadRuleDetailHaulMode: DocumentAutoUploadRuleDetailHaulModeIDDocumentAutoUploadRuleDetailHaulModeIDint4
No
1 - 1
Foreign Keys FK_DocumentAutoUploadRuleDetailHaulMode_DocumentAutoUploadRuleDetail: [dbo].[DocumentAutoUploadRuleDetail].DocumentAutoUploadRuleDetailFIDIndexes IX_DocumentAutoUploadRuleDetailHaulMode_RuleDetail: DocumentAutoUploadRuleDetailFID\HaulModeFIDDocumentAutoUploadRuleDetailFIDint4
No
Foreign Keys FK_DocumentAutoUploadRuleDetailHaulMode_HaulMode: [dbo].[HaulMode].HaulModeFIDIndexes IX_DocumentAutoUploadRuleDetailHaulMode_RuleDetail: DocumentAutoUploadRuleDetailFID\HaulModeFIDIndexes IX_DocumentAutoUploadRuleDetailHaulMode_HaulMode: HaulModeFIDHaulModeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DocumentAutoUploadRuleDetailHaulMode: DocumentAutoUploadRuleDetailHaulModeIDPK_DocumentAutoUploadRuleDetailHaulModeDocumentAutoUploadRuleDetailHaulModeID
Yes
IX_DocumentAutoUploadRuleDetailHaulMode_RuleDetailDocumentAutoUploadRuleDetailFID, HaulModeFID
Yes
IX_DocumentAutoUploadRuleDetailHaulMode_HaulModeHaulModeFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_DocumentAutoUploadRuleDetailHaulMode_DocumentAutoUploadRuleDetailCascadeDocumentAutoUploadRuleDetailFID->[dbo].[DocumentAutoUploadRuleDetail].[DocumentAutoUploadRuleDetailID]
FK_DocumentAutoUploadRuleDetailHaulMode_HaulModeCascadeHaulModeFID->[dbo].[HaulMode].[HaulModeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[DocumentAutoUploadRuleDetailHaulMode]
(
[DocumentAutoUploadRuleDetailHaulModeID] [int] NOT NULL IDENTITY(1, 1),
[DocumentAutoUploadRuleDetailFID] [int] NOT NULL,
[HaulModeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailHaulMode] ADD CONSTRAINT [PK_DocumentAutoUploadRuleDetailHaulMode] PRIMARY KEY CLUSTERED  ([DocumentAutoUploadRuleDetailHaulModeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DocumentAutoUploadRuleDetailHaulMode_RuleDetail] ON [dbo].[DocumentAutoUploadRuleDetailHaulMode] ([DocumentAutoUploadRuleDetailFID], [HaulModeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentAutoUploadRuleDetailHaulMode_HaulMode] ON [dbo].[DocumentAutoUploadRuleDetailHaulMode] ([HaulModeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailHaulMode] ADD CONSTRAINT [FK_DocumentAutoUploadRuleDetailHaulMode_DocumentAutoUploadRuleDetail] FOREIGN KEY ([DocumentAutoUploadRuleDetailFID]) REFERENCES [dbo].[DocumentAutoUploadRuleDetail] ([DocumentAutoUploadRuleDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailHaulMode] ADD CONSTRAINT [FK_DocumentAutoUploadRuleDetailHaulMode_HaulMode] FOREIGN KEY ([HaulModeFID]) REFERENCES [dbo].[HaulMode] ([HaulModeID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[DocumentAutoUploadRuleDetailHaulMode] TO [MssExec]
GRANT INSERT ON  [dbo].[DocumentAutoUploadRuleDetailHaulMode] TO [MssExec]
GRANT DELETE ON  [dbo].[DocumentAutoUploadRuleDetailHaulMode] TO [MssExec]
GRANT UPDATE ON  [dbo].[DocumentAutoUploadRuleDetailHaulMode] TO [MssExec]
GO
Uses