Tables [dbo].[MilitaryCarrierPhoneNumber]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)916
Created10:11:25 PM Wednesday, October 25, 2006
Last Modified11:13:40 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_MilitaryCarrierPhoneNumber: MilitaryCarrierPhoneNumberIDMilitaryCarrierPhoneNumberIDint4
No
1 - 1
Foreign Keys FK_MilitaryCarrierPhoneNumber_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
AreaCode[dbo].[PhoneAreaCode]4
Yes
LocalNumber[dbo].[PhoneLocalNumber]20
Yes
Extension[dbo].[PhoneExtension]10
Yes
Foreign Keys FK_MilitaryCarrierPhoneNumber_MilitaryCarrier: [dbo].[MilitaryCarrier].MilitaryCarrierFIDIndexes IX_MilitaryCarrierPhoneNumber_MilitaryCarrierAndPhoneType: MilitaryCarrierFID\MilitaryCarrierPhoneTypeFIDMilitaryCarrierFIDint4
No
Foreign Keys FK_MilitaryCarrierPhoneNumber_MilitaryCarrierPhoneType: [dbo].[MilitaryCarrierPhoneType].MilitaryCarrierPhoneTypeFIDIndexes IX_MilitaryCarrierPhoneNumber_MilitaryCarrierAndPhoneType: MilitaryCarrierFID\MilitaryCarrierPhoneTypeFIDMilitaryCarrierPhoneTypeFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_MilitaryCarrierPhoneNumber: MilitaryCarrierPhoneNumberIDPK_MilitaryCarrierPhoneNumberMilitaryCarrierPhoneNumberID
Yes
80
IX_MilitaryCarrierPhoneNumber_MilitaryCarrierAndPhoneTypeMilitaryCarrierFID, MilitaryCarrierPhoneTypeFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_MilitaryCarrierPhoneNumber_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_MilitaryCarrierPhoneNumber_MilitaryCarrierCascadeMilitaryCarrierFID->[dbo].[MilitaryCarrier].[MilitaryCarrierID]
FK_MilitaryCarrierPhoneNumber_MilitaryCarrierPhoneTypeMilitaryCarrierPhoneTypeFID->[dbo].[MilitaryCarrierPhoneType].[MilitaryCarrierPhoneTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MilitaryCarrierPhoneNumber]
(
[MilitaryCarrierPhoneNumberID] [int] NOT NULL IDENTITY(1, 1),
[CountryCodeStandardFID] [int] NULL,
[AreaCode] [dbo].[PhoneAreaCode] NULL,
[LocalNumber] [dbo].[PhoneLocalNumber] NULL,
[Extension] [dbo].[PhoneExtension] NULL,
[MilitaryCarrierFID] [int] NOT NULL,
[MilitaryCarrierPhoneTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrierPhoneNumber] ADD CONSTRAINT [PK_MilitaryCarrierPhoneNumber] PRIMARY KEY NONCLUSTERED  ([MilitaryCarrierPhoneNumberID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrierPhoneNumber] ADD CONSTRAINT [IX_MilitaryCarrierPhoneNumber_MilitaryCarrierAndPhoneType] UNIQUE NONCLUSTERED  ([MilitaryCarrierFID], [MilitaryCarrierPhoneTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrierPhoneNumber] ADD CONSTRAINT [FK_MilitaryCarrierPhoneNumber_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[MilitaryCarrierPhoneNumber] ADD CONSTRAINT [FK_MilitaryCarrierPhoneNumber_MilitaryCarrier] FOREIGN KEY ([MilitaryCarrierFID]) REFERENCES [dbo].[MilitaryCarrier] ([MilitaryCarrierID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[MilitaryCarrierPhoneNumber] ADD CONSTRAINT [FK_MilitaryCarrierPhoneNumber_MilitaryCarrierPhoneType] FOREIGN KEY ([MilitaryCarrierPhoneTypeFID]) REFERENCES [dbo].[MilitaryCarrierPhoneType] ([MilitaryCarrierPhoneTypeID])
GO
GRANT SELECT ON  [dbo].[MilitaryCarrierPhoneNumber] TO [MssExec]
GRANT INSERT ON  [dbo].[MilitaryCarrierPhoneNumber] TO [MssExec]
GRANT DELETE ON  [dbo].[MilitaryCarrierPhoneNumber] TO [MssExec]
GRANT UPDATE ON  [dbo].[MilitaryCarrierPhoneNumber] TO [MssExec]
GO
Uses