Tables [dbo].[MilitaryCarrierContactPhoneNumber]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created10:11:25 PM Wednesday, October 25, 2006
Last Modified1:51:39 PM Wednesday, April 10, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_MilitaryCarrierContactPhoneNumber: MilitaryCarrierContactPhoneNumberIDMilitaryCarrierContactPhoneNumberIDint4
No
1 - 1
Foreign Keys FK_MilitaryCarrierContactPhoneNumber_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
AreaCode[dbo].[PhoneAreaCode]4
Yes
LocalNumber[dbo].[PhoneLocalNumber]20
Yes
Extension[dbo].[PhoneExtension]10
Yes
Foreign Keys FK_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContact: [dbo].[MilitaryCarrierContact].MilitaryCarrierContactFIDIndexes IX_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContactAndPhoneType: MilitaryCarrierContactFID\MilitaryCarrierContactPhoneTypeFIDMilitaryCarrierContactFIDint4
No
Foreign Keys FK_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContactPhoneType: [dbo].[MilitaryCarrierContactPhoneType].MilitaryCarrierContactPhoneTypeFIDIndexes IX_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContactAndPhoneType: MilitaryCarrierContactFID\MilitaryCarrierContactPhoneTypeFIDMilitaryCarrierContactPhoneTypeFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_MilitaryCarrierContactPhoneNumber: MilitaryCarrierContactPhoneNumberIDPK_MilitaryCarrierContactPhoneNumberMilitaryCarrierContactPhoneNumberID
Yes
80
IX_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContactAndPhoneTypeMilitaryCarrierContactFID, MilitaryCarrierContactPhoneTypeFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_MilitaryCarrierContactPhoneNumber_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContactCascadeMilitaryCarrierContactFID->[dbo].[MilitaryCarrierContact].[MilitaryCarrierContactID]
FK_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContactPhoneTypeMilitaryCarrierContactPhoneTypeFID->[dbo].[MilitaryCarrierContactPhoneType].[MilitaryCarrierContactPhoneTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MilitaryCarrierContactPhoneNumber]
(
[MilitaryCarrierContactPhoneNumberID] [int] NOT NULL IDENTITY(1, 1),
[CountryCodeStandardFID] [int] NULL,
[AreaCode] [dbo].[PhoneAreaCode] NULL,
[LocalNumber] [dbo].[PhoneLocalNumber] NULL,
[Extension] [dbo].[PhoneExtension] NULL,
[MilitaryCarrierContactFID] [int] NOT NULL,
[MilitaryCarrierContactPhoneTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrierContactPhoneNumber] ADD CONSTRAINT [PK_MilitaryCarrierContactPhoneNumber] PRIMARY KEY NONCLUSTERED  ([MilitaryCarrierContactPhoneNumberID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrierContactPhoneNumber] ADD CONSTRAINT [IX_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContactAndPhoneType] UNIQUE NONCLUSTERED  ([MilitaryCarrierContactFID], [MilitaryCarrierContactPhoneTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrierContactPhoneNumber] ADD CONSTRAINT [FK_MilitaryCarrierContactPhoneNumber_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[MilitaryCarrierContactPhoneNumber] ADD CONSTRAINT [FK_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContact] FOREIGN KEY ([MilitaryCarrierContactFID]) REFERENCES [dbo].[MilitaryCarrierContact] ([MilitaryCarrierContactID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[MilitaryCarrierContactPhoneNumber] ADD CONSTRAINT [FK_MilitaryCarrierContactPhoneNumber_MilitaryCarrierContactPhoneType] FOREIGN KEY ([MilitaryCarrierContactPhoneTypeFID]) REFERENCES [dbo].[MilitaryCarrierContactPhoneType] ([MilitaryCarrierContactPhoneTypeID])
GO
GRANT SELECT ON  [dbo].[MilitaryCarrierContactPhoneNumber] TO [MssExec]
GRANT INSERT ON  [dbo].[MilitaryCarrierContactPhoneNumber] TO [MssExec]
GRANT DELETE ON  [dbo].[MilitaryCarrierContactPhoneNumber] TO [MssExec]
GRANT UPDATE ON  [dbo].[MilitaryCarrierContactPhoneNumber] TO [MssExec]
GO
Uses