Tables [dbo].[MilitaryBaseState]
Properties
PropertyValue
Row Count (~)248
Created4:57:09 PM Thursday, September 7, 2006
Last Modified11:13:40 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_MilitaryBaseState: MilitaryBaseStateIDMilitaryBaseStateIDint4
No
1 - 1
Foreign Keys FK_MilitaryBaseState_MilitaryBase: [dbo].[MilitaryBase].MilitaryBaseFIDIndexes IX_MilitaryBaseState_MilitaryBaseAndState: MilitaryBaseFID\StateFIDMilitaryBaseFIDint4
No
Foreign Keys FK_MilitaryBaseState_State: [dbo].[State].StateFIDIndexes IX_MilitaryBaseState_MilitaryBaseAndState: MilitaryBaseFID\StateFIDStateFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_MilitaryBaseState: MilitaryBaseStateIDPK_MilitaryBaseStateMilitaryBaseStateID
Yes
80
IX_MilitaryBaseState_MilitaryBaseAndStateMilitaryBaseFID, StateFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_MilitaryBaseState_MilitaryBaseCascadeMilitaryBaseFID->[dbo].[MilitaryBase].[MilitaryBaseID]
FK_MilitaryBaseState_StateStateFID->[dbo].[State].[StateID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MilitaryBaseState]
(
[MilitaryBaseStateID] [int] NOT NULL IDENTITY(1, 1),
[MilitaryBaseFID] [int] NOT NULL,
[StateFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBaseState] ADD CONSTRAINT [PK_MilitaryBaseState] PRIMARY KEY CLUSTERED  ([MilitaryBaseStateID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBaseState] ADD CONSTRAINT [IX_MilitaryBaseState_MilitaryBaseAndState] UNIQUE NONCLUSTERED  ([MilitaryBaseFID], [StateFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBaseState] ADD CONSTRAINT [FK_MilitaryBaseState_MilitaryBase] FOREIGN KEY ([MilitaryBaseFID]) REFERENCES [dbo].[MilitaryBase] ([MilitaryBaseID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[MilitaryBaseState] ADD CONSTRAINT [FK_MilitaryBaseState_State] FOREIGN KEY ([StateFID]) REFERENCES [dbo].[State] ([StateID])
GO
GRANT SELECT ON  [dbo].[MilitaryBaseState] TO [MssExec]
GRANT INSERT ON  [dbo].[MilitaryBaseState] TO [MssExec]
GRANT DELETE ON  [dbo].[MilitaryBaseState] TO [MssExec]
GRANT UPDATE ON  [dbo].[MilitaryBaseState] TO [MssExec]
GO
Uses
Used By