Tables [dbo].[JobPhoneNumber]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created4:57:07 PM Thursday, September 7, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_JobPhoneNumber: JobPhoneNumberIDJobPhoneNumberIDint4
No
1 - 1
Foreign Keys FK_JobPhoneNumber_JobPhoneType: [dbo].[JobPhoneType].JobPhoneTypeFIDJobPhoneTypeFIDint4
No
Foreign Keys FK_JobPhoneNumber_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
AreaCode[dbo].[PhoneAreaCode]4
Yes
LocalNumber[dbo].[PhoneLocalNumber]20
Yes
Extension[dbo].[PhoneExtension]10
Yes
Foreign Keys FK_JobPhoneNumber_Job: [dbo].[Jobs].JobsFIDIndexes IX_JobPhoneNumber_Job: JobsFIDJobsFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_JobPhoneNumber: JobPhoneNumberIDPK_JobPhoneNumberJobPhoneNumberID
Yes
80
IX_JobPhoneNumber_JobJobsFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_JobPhoneNumber_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_JobPhoneNumber_JobPhoneTypeJobPhoneTypeFID->[dbo].[JobPhoneType].[JobPhoneTypeID]
FK_JobPhoneNumber_JobCascadeJobsFID->[dbo].[Jobs].[JobsID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[JobPhoneNumber]
(
[JobPhoneNumberID] [int] NOT NULL IDENTITY(1, 1),
[JobPhoneTypeFID] [int] NOT NULL,
[CountryCodeStandardFID] [int] NULL,
[AreaCode] [dbo].[PhoneAreaCode] NULL,
[LocalNumber] [dbo].[PhoneLocalNumber] NULL,
[Extension] [dbo].[PhoneExtension] NULL,
[JobsFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[JobPhoneNumber] ADD CONSTRAINT [PK_JobPhoneNumber] PRIMARY KEY NONCLUSTERED  ([JobPhoneNumberID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[JobPhoneNumber] ADD CONSTRAINT [IX_JobPhoneNumber_Job] UNIQUE NONCLUSTERED  ([JobsFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[JobPhoneNumber] ADD CONSTRAINT [FK_JobPhoneNumber_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[JobPhoneNumber] ADD CONSTRAINT [FK_JobPhoneNumber_JobPhoneType] FOREIGN KEY ([JobPhoneTypeFID]) REFERENCES [dbo].[JobPhoneType] ([JobPhoneTypeID])
GO
ALTER TABLE [dbo].[JobPhoneNumber] ADD CONSTRAINT [FK_JobPhoneNumber_Job] FOREIGN KEY ([JobsFID]) REFERENCES [dbo].[Jobs] ([JobsID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[JobPhoneNumber] TO [MssExec]
GRANT INSERT ON  [dbo].[JobPhoneNumber] TO [MssExec]
GRANT DELETE ON  [dbo].[JobPhoneNumber] TO [MssExec]
GRANT UPDATE ON  [dbo].[JobPhoneNumber] TO [MssExec]
GO
Uses
Used By