Tables [dbo].[MilitaryCarrierContact]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:11:25 PM Wednesday, October 25, 2006
Last Modified7:32:30 PM Thursday, August 29, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_MilitaryCarrierContact: MilitaryCarrierContactIDMilitaryCarrierContactIDint4
No
1 - 1
Foreign Keys FK_MilitaryCarrierContact_MilitaryCarrier: [dbo].[MilitaryCarrier].MilitaryCarrierFIDIndexes IX_MilitaryCarrierContact_MilitaryCarrier: MilitaryCarrierFIDIndexes IX_MilitaryCarrierContact_MilitaryCarrier_IsDefault: MilitaryCarrierFIDIndexes ix_MilitaryCarrierContacts_Carrier: MilitaryCarrierFIDMilitaryCarrierFIDint4
No
Contactvarchar(30)30
Yes
Titlevarchar(50)50
Yes
Emailvarchar(120)120
Yes
IsDefaultbit1
No
((0))
Indexes Indexes
NameColumnsUniqueFilteredFill Factor
Cluster Primary Key PK_MilitaryCarrierContact: MilitaryCarrierContactIDPK_MilitaryCarrierContactMilitaryCarrierContactID
Yes
IX_MilitaryCarrierContact_MilitaryCarrier_IsDefaultMilitaryCarrierFID
Yes
Yes
IX_MilitaryCarrierContact_MilitaryCarrierMilitaryCarrierFID
ix_MilitaryCarrierContacts_CarrierMilitaryCarrierFID80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_MilitaryCarrierContact_MilitaryCarrierCascadeMilitaryCarrierFID->[dbo].[MilitaryCarrier].[MilitaryCarrierID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MilitaryCarrierContact]
(
[MilitaryCarrierContactID] [int] NOT NULL IDENTITY(1, 1),
[MilitaryCarrierFID] [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_MilitaryCarrierContact_IsDefault] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrierContact] ADD CONSTRAINT [PK_MilitaryCarrierContact] PRIMARY KEY CLUSTERED  ([MilitaryCarrierContactID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MilitaryCarrierContact_MilitaryCarrier] ON [dbo].[MilitaryCarrierContact] ([MilitaryCarrierFID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_MilitaryCarrierContact_MilitaryCarrier_IsDefault] ON [dbo].[MilitaryCarrierContact] ([MilitaryCarrierFID]) WHERE ([IsDefault]=(1)) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ix_MilitaryCarrierContacts_Carrier] ON [dbo].[MilitaryCarrierContact] ([MilitaryCarrierFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrierContact] ADD CONSTRAINT [FK_MilitaryCarrierContact_MilitaryCarrier] FOREIGN KEY ([MilitaryCarrierFID]) REFERENCES [dbo].[MilitaryCarrier] ([MilitaryCarrierID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[MilitaryCarrierContact] TO [MssExec]
GRANT INSERT ON  [dbo].[MilitaryCarrierContact] TO [MssExec]
GRANT DELETE ON  [dbo].[MilitaryCarrierContact] TO [MssExec]
GRANT UPDATE ON  [dbo].[MilitaryCarrierContact] TO [MssExec]
GO
Uses
Used By