Tables [dbo].[MilitaryAllocationVanLine]
Properties
PropertyValue
Row Count (~)0
Created10:30:29 AM Monday, March 30, 2015
Last Modified10:30:29 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_MilitaryAllocationVanLine: MilitaryAllocationVanLineIDMilitaryAllocationVanLineIDint4
No
1 - 1
Foreign Keys FK_MilitaryAllocationVanLine_MilitaryAllocationHeader: [dbo].[MilitaryAllocationHeader].MilitaryAllocationHeaderFIDIndexes IX_MilitaryAllocationVanLine_MilitaryAllocationHeader_VanLine: MilitaryAllocationHeaderFID\VanLineFIDMilitaryAllocationHeaderFIDint4
No
Foreign Keys FK_MilitaryAllocationVanline_VanLine: [dbo].[VanLine].VanLineFIDIndexes IX_MilitaryAllocationVanLine_MilitaryAllocationHeader_VanLine: MilitaryAllocationHeaderFID\VanLineFIDVanLineFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_MilitaryAllocationVanLine: MilitaryAllocationVanLineIDPK_MilitaryAllocationVanLineMilitaryAllocationVanLineID
Yes
IX_MilitaryAllocationVanLine_MilitaryAllocationHeader_VanLineMilitaryAllocationHeaderFID, VanLineFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_MilitaryAllocationVanLine_MilitaryAllocationHeaderCascadeMilitaryAllocationHeaderFID->[dbo].[MilitaryAllocationHeader].[MilitaryAllocationHeaderID]
FK_MilitaryAllocationVanline_VanLineVanLineFID->[dbo].[VanLine].[VLPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MilitaryAllocationVanLine]
(
[MilitaryAllocationVanLineID] [int] NOT NULL IDENTITY(1, 1),
[MilitaryAllocationHeaderFID] [int] NOT NULL,
[VanLineFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryAllocationVanLine] ADD CONSTRAINT [PK_MilitaryAllocationVanLine] PRIMARY KEY CLUSTERED  ([MilitaryAllocationVanLineID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryAllocationVanLine] ADD CONSTRAINT [IX_MilitaryAllocationVanLine_MilitaryAllocationHeader_VanLine] UNIQUE NONCLUSTERED  ([MilitaryAllocationHeaderFID], [VanLineFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryAllocationVanLine] ADD CONSTRAINT [FK_MilitaryAllocationVanLine_MilitaryAllocationHeader] FOREIGN KEY ([MilitaryAllocationHeaderFID]) REFERENCES [dbo].[MilitaryAllocationHeader] ([MilitaryAllocationHeaderID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[MilitaryAllocationVanLine] ADD CONSTRAINT [FK_MilitaryAllocationVanline_VanLine] FOREIGN KEY ([VanLineFID]) REFERENCES [dbo].[VanLine] ([VLPriKey])
GO
GRANT SELECT ON  [dbo].[MilitaryAllocationVanLine] TO [MssExec]
GRANT INSERT ON  [dbo].[MilitaryAllocationVanLine] TO [MssExec]
GRANT DELETE ON  [dbo].[MilitaryAllocationVanLine] TO [MssExec]
GRANT UPDATE ON  [dbo].[MilitaryAllocationVanLine] TO [MssExec]
GO
Uses