Tables [dbo].[MilitaryBaseContact]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created4:57:09 PM Thursday, September 7, 2006
Last Modified9:01:26 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_MilitaryBaseContact: MilitaryBaseContactIDMilitaryBaseContactIDint4
No
1 - 1
Foreign Keys FK_MilitaryBaseContact_MilitaryBase: [dbo].[MilitaryBase].MilitaryBaseFIDIndexes IX_MilitaryBaseContact_MilitaryBase: MilitaryBaseFIDIndexes IX_MilitaryBaseContact_MilitaryBase_IsDefault: MilitaryBaseFIDIndexes ix_MilitaryBaseContacts_MilitaryBase: MilitaryBaseFIDMilitaryBaseFIDint4
No
Contactvarchar(30)30
Yes
Titlevarchar(50)50
Yes
Emailvarchar(120)120
Yes
IsDefaultbit1
No
((0))
Indexes Indexes
NameColumnsUniqueFilteredFill Factor
Cluster Primary Key PK_MilitaryBaseContact: MilitaryBaseContactIDPK_MilitaryBaseContactMilitaryBaseContactID
Yes
IX_MilitaryBaseContact_MilitaryBase_IsDefaultMilitaryBaseFID
Yes
Yes
IX_MilitaryBaseContact_MilitaryBaseMilitaryBaseFID
ix_MilitaryBaseContacts_MilitaryBaseMilitaryBaseFID80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_MilitaryBaseContact_MilitaryBaseCascadeMilitaryBaseFID->[dbo].[MilitaryBase].[MilitaryBaseID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MilitaryBaseContact]
(
[MilitaryBaseContactID] [int] NOT NULL IDENTITY(1, 1),
[MilitaryBaseFID] [int] NOT NULL,
[Contact] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Title] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Email] [varchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsDefault] [bit] NOT NULL CONSTRAINT [DF_MilitaryBaseContact_IsDefault] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBaseContact] ADD CONSTRAINT [PK_MilitaryBaseContact] PRIMARY KEY CLUSTERED  ([MilitaryBaseContactID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MilitaryBaseContact_MilitaryBase] ON [dbo].[MilitaryBaseContact] ([MilitaryBaseFID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_MilitaryBaseContact_MilitaryBase_IsDefault] ON [dbo].[MilitaryBaseContact] ([MilitaryBaseFID]) WHERE ([IsDefault]=(1)) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ix_MilitaryBaseContacts_MilitaryBase] ON [dbo].[MilitaryBaseContact] ([MilitaryBaseFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBaseContact] ADD CONSTRAINT [FK_MilitaryBaseContact_MilitaryBase] FOREIGN KEY ([MilitaryBaseFID]) REFERENCES [dbo].[MilitaryBase] ([MilitaryBaseID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[MilitaryBaseContact] TO [MssExec]
GRANT INSERT ON  [dbo].[MilitaryBaseContact] TO [MssExec]
GRANT DELETE ON  [dbo].[MilitaryBaseContact] TO [MssExec]
GRANT UPDATE ON  [dbo].[MilitaryBaseContact] TO [MssExec]
GO
Uses
Used By