Tables [dbo].[ClaimPhoneNumber]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)240
Created10:12:52 PM Thursday, December 28, 2006
Last Modified11:13:38 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ClaimPhoneNumber: ClaimPhoneNumberIDClaimPhoneNumberIDint4
No
1 - 1
Foreign Keys FK_ClaimPhoneNumber_Claim: [dbo].[Claim].ClaimFIDIndexes IX_ClaimPhoneNumber_ClaimAndPhoneType: ClaimFID\ClaimPhoneTypeFIDClaimFIDint4
No
Foreign Keys FK_ClaimPhoneNumber_ClaimPhoneType: [dbo].[ClaimPhoneType].ClaimPhoneTypeFIDIndexes IX_ClaimPhoneNumber_ClaimAndPhoneType: ClaimFID\ClaimPhoneTypeFIDClaimPhoneTypeFIDint4
No
Foreign Keys FK_ClaimPhoneNumber_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
AreaCode[dbo].[PhoneAreaCode]4
Yes
LocalNumber[dbo].[PhoneLocalNumber]20
Yes
Extension[dbo].[PhoneExtension]10
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimPhoneNumber: ClaimPhoneNumberIDPK_ClaimPhoneNumberClaimPhoneNumberID
Yes
80
IX_ClaimPhoneNumber_ClaimAndPhoneTypeClaimFID, ClaimPhoneTypeFID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_ClaimPhoneNumber_ClaimClaimFID->[dbo].[Claim].[ClaimID]
FK_ClaimPhoneNumber_ClaimPhoneTypeClaimPhoneTypeFID->[dbo].[ClaimPhoneType].[ClaimPhoneTypeID]
FK_ClaimPhoneNumber_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimPhoneNumber]
(
[ClaimPhoneNumberID] [int] NOT NULL IDENTITY(1, 1),
[ClaimFID] [int] NOT NULL,
[ClaimPhoneTypeFID] [int] NOT NULL,
[CountryCodeStandardFID] [int] NULL,
[AreaCode] [dbo].[PhoneAreaCode] NULL,
[LocalNumber] [dbo].[PhoneLocalNumber] NULL,
[Extension] [dbo].[PhoneExtension] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPhoneNumber] ADD CONSTRAINT [PK_ClaimPhoneNumber] PRIMARY KEY NONCLUSTERED  ([ClaimPhoneNumberID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPhoneNumber] ADD CONSTRAINT [IX_ClaimPhoneNumber_ClaimAndPhoneType] UNIQUE NONCLUSTERED  ([ClaimFID], [ClaimPhoneTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPhoneNumber] ADD CONSTRAINT [FK_ClaimPhoneNumber_Claim] FOREIGN KEY ([ClaimFID]) REFERENCES [dbo].[Claim] ([ClaimID])
GO
ALTER TABLE [dbo].[ClaimPhoneNumber] ADD CONSTRAINT [FK_ClaimPhoneNumber_ClaimPhoneType] FOREIGN KEY ([ClaimPhoneTypeFID]) REFERENCES [dbo].[ClaimPhoneType] ([ClaimPhoneTypeID])
GO
ALTER TABLE [dbo].[ClaimPhoneNumber] ADD CONSTRAINT [FK_ClaimPhoneNumber_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
GRANT SELECT ON  [dbo].[ClaimPhoneNumber] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimPhoneNumber] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimPhoneNumber] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimPhoneNumber] TO [MssExec]
GO
Uses
Used By