Tables [dbo].[MilitaryBaseContactPhoneNumber]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created4:57:09 PM Thursday, September 7, 2006
Last Modified8:49:15 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_MilitaryBaseContactPhoneNumber: MilitaryBaseContactPhoneNumberIDMilitaryBaseContactPhoneNumberIDint4
No
1 - 1
Foreign Keys FK_MilitaryBaseContactPhoneNumber_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
AreaCode[dbo].[PhoneAreaCode]4
Yes
LocalNumber[dbo].[PhoneLocalNumber]20
Yes
Extension[dbo].[PhoneExtension]10
Yes
Foreign Keys FK_MilitaryBaseContactPhoneNumber_MilitaryBaseContact: [dbo].[MilitaryBaseContact].MilitaryBaseContactFIDIndexes IX_MilitaryBaseContactPhoneNumber_MilitaryBaseContactAndPhoneType: MilitaryBaseContactFID\MilitaryBaseContactPhoneTypeFIDMilitaryBaseContactFIDint4
No
Foreign Keys FK_MilitaryBaseContactPhoneNumber_MilitaryBaseContactPhoneType: [dbo].[MilitaryBaseContactPhoneType].MilitaryBaseContactPhoneTypeFIDIndexes IX_MilitaryBaseContactPhoneNumber_MilitaryBaseContactAndPhoneType: MilitaryBaseContactFID\MilitaryBaseContactPhoneTypeFIDMilitaryBaseContactPhoneTypeFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_MilitaryBaseContactPhoneNumber: MilitaryBaseContactPhoneNumberIDPK_MilitaryBaseContactPhoneNumberMilitaryBaseContactPhoneNumberID
Yes
80
IX_MilitaryBaseContactPhoneNumber_MilitaryBaseContactAndPhoneTypeMilitaryBaseContactFID, MilitaryBaseContactPhoneTypeFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_MilitaryBaseContactPhoneNumber_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_MilitaryBaseContactPhoneNumber_MilitaryBaseContactCascadeMilitaryBaseContactFID->[dbo].[MilitaryBaseContact].[MilitaryBaseContactID]
FK_MilitaryBaseContactPhoneNumber_MilitaryBaseContactPhoneTypeMilitaryBaseContactPhoneTypeFID->[dbo].[MilitaryBaseContactPhoneType].[MilitaryBaseContactPhoneTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MilitaryBaseContactPhoneNumber]
(
[MilitaryBaseContactPhoneNumberID] [int] NOT NULL IDENTITY(1, 1),
[CountryCodeStandardFID] [int] NULL,
[AreaCode] [dbo].[PhoneAreaCode] NULL,
[LocalNumber] [dbo].[PhoneLocalNumber] NULL,
[Extension] [dbo].[PhoneExtension] NULL,
[MilitaryBaseContactFID] [int] NOT NULL,
[MilitaryBaseContactPhoneTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBaseContactPhoneNumber] ADD CONSTRAINT [PK_MilitaryBaseContactPhoneNumber] PRIMARY KEY NONCLUSTERED  ([MilitaryBaseContactPhoneNumberID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBaseContactPhoneNumber] ADD CONSTRAINT [IX_MilitaryBaseContactPhoneNumber_MilitaryBaseContactAndPhoneType] UNIQUE NONCLUSTERED  ([MilitaryBaseContactFID], [MilitaryBaseContactPhoneTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBaseContactPhoneNumber] ADD CONSTRAINT [FK_MilitaryBaseContactPhoneNumber_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[MilitaryBaseContactPhoneNumber] ADD CONSTRAINT [FK_MilitaryBaseContactPhoneNumber_MilitaryBaseContact] FOREIGN KEY ([MilitaryBaseContactFID]) REFERENCES [dbo].[MilitaryBaseContact] ([MilitaryBaseContactID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[MilitaryBaseContactPhoneNumber] ADD CONSTRAINT [FK_MilitaryBaseContactPhoneNumber_MilitaryBaseContactPhoneType] FOREIGN KEY ([MilitaryBaseContactPhoneTypeFID]) REFERENCES [dbo].[MilitaryBaseContactPhoneType] ([MilitaryBaseContactPhoneTypeID])
GO
GRANT SELECT ON  [dbo].[MilitaryBaseContactPhoneNumber] TO [MssExec]
GRANT INSERT ON  [dbo].[MilitaryBaseContactPhoneNumber] TO [MssExec]
GRANT DELETE ON  [dbo].[MilitaryBaseContactPhoneNumber] TO [MssExec]
GRANT UPDATE ON  [dbo].[MilitaryBaseContactPhoneNumber] TO [MssExec]
GO
Uses