Tables [dbo].[ClaimPayeeContact]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)293
Created6:24:47 PM Monday, April 16, 2007
Last Modified11:13:38 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ClaimPayeeContact: ClaimPayeeContactIDClaimPayeeContactIDint4
No
1 - 1
Foreign Keys FK_ClaimPayeeContact_Claim: [dbo].[Claim].ClaimFIDIndexes IX_ClaimPayeeContact_AddressType: ClaimFID\AddressTypeFIDClaimFIDint4
No
LastNamevarchar(26)26
No
FirstNamevarchar(16)16
Yes
Foreign Keys FK_ClaimPayeeContact_AddressType: [dbo].[AddressType].AddressTypeFIDIndexes IX_ClaimPayeeContact_AddressType: ClaimFID\AddressTypeFIDAddressTypeFIDint4
No
Address1[dbo].[Address]256
Yes
Address2[dbo].[Address]256
Yes
Address3[dbo].[Address]256
Yes
City[dbo].[AddressCity]26
Yes
State[dbo].[AddressState]2
Yes
PostalCode[dbo].[AddressPostalCode]10
Yes
Foreign Keys FK_ClaimPayeeContact_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimPayeeContact: ClaimPayeeContactIDPK_ClaimPayeeContactClaimPayeeContactID
Yes
80
IX_ClaimPayeeContact_AddressTypeClaimFID, AddressTypeFID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_ClaimPayeeContact_AddressTypeAddressTypeFID->[dbo].[AddressType].[AddressTypeID]
FK_ClaimPayeeContact_ClaimClaimFID->[dbo].[Claim].[ClaimID]
FK_ClaimPayeeContact_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimPayeeContact]
(
[ClaimPayeeContactID] [int] NOT NULL IDENTITY(1, 1),
[ClaimFID] [int] NOT NULL,
[LastName] [varchar] (26) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[FirstName] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AddressTypeFID] [int] NOT NULL,
[Address1] [dbo].[Address] NULL,
[Address2] [dbo].[Address] NULL,
[Address3] [dbo].[Address] NULL,
[City] [dbo].[AddressCity] NULL,
[State] [dbo].[AddressState] NULL,
[PostalCode] [dbo].[AddressPostalCode] NULL,
[CountryCodeStandardFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPayeeContact] ADD CONSTRAINT [PK_ClaimPayeeContact] PRIMARY KEY NONCLUSTERED  ([ClaimPayeeContactID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPayeeContact] ADD CONSTRAINT [IX_ClaimPayeeContact_AddressType] UNIQUE NONCLUSTERED  ([ClaimFID], [AddressTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPayeeContact] ADD CONSTRAINT [FK_ClaimPayeeContact_AddressType] FOREIGN KEY ([AddressTypeFID]) REFERENCES [dbo].[AddressType] ([AddressTypeID])
GO
ALTER TABLE [dbo].[ClaimPayeeContact] ADD CONSTRAINT [FK_ClaimPayeeContact_Claim] FOREIGN KEY ([ClaimFID]) REFERENCES [dbo].[Claim] ([ClaimID])
GO
ALTER TABLE [dbo].[ClaimPayeeContact] ADD CONSTRAINT [FK_ClaimPayeeContact_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
GRANT SELECT ON  [dbo].[ClaimPayeeContact] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimPayeeContact] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimPayeeContact] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimPayeeContact] TO [MssExec]
GO
Uses