Tables [dbo].[ARCustomerContact]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:55:52 AM Thursday, March 21, 2019
Last Modified1:10:06 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Key IX_ARCustomerContact_ContactID: ContactID\CustomerID\ContactTypeIDForeign Keys FK_ARCustomerContact_CustomerID_ARCustomers: [dbo].[ARCustomers].CustomerIDCustomerIDint4
False
Cluster Key IX_ARCustomerContact_ContactID: ContactID\CustomerID\ContactTypeIDForeign Keys FK_ARCustomerContact_ContactID_CMContacts: [dbo].[CMContacts].ContactIDContactIDint4
False
Cluster Key IX_ARCustomerContact_ContactID: ContactID\CustomerID\ContactTypeIDForeign Keys FK_ARCustomerContact_ContactTypeID_CMContactTypes: [dbo].[CMContactTypes].ContactTypeIDContactTypeIDint4
True
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
timestamptimestamp8
False
WebFeaturesint4
False
((0))
Primary Key PK_ARCustomerContact: CustomerContactIDCustomerContactIDint4
False
1 - 1
KeyNameKey ColumnsUniqueFill Factor
Primary Key PK_ARCustomerContact: CustomerContactIDPK_ARCustomerContactCustomerContactID
True
80
Cluster Key IX_ARCustomerContact_ContactID: ContactID\CustomerID\ContactTypeIDIX_ARCustomerContact_ContactIDContactID, CustomerID, ContactTypeID
True
80
NameNo CheckColumns
FK_ARCustomerContact_ContactID_CMContactsContactID->[dbo].[CMContacts].[ContactID]
FK_ARCustomerContact_ContactTypeID_CMContactTypesContactTypeID->[dbo].[CMContactTypes].[ContactTypeID]
FK_ARCustomerContact_CustomerID_ARCustomers
True
CustomerID->[dbo].[ARCustomers].[CustomerID]
CREATE TABLE [dbo].[ARCustomerContact]
(
[CustomerID] [int] NOT NULL,
[ContactID] [int] NOT NULL,
[ContactTypeID] [int] NULL,
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_ARCustomerContact_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ARCustomerContact_LastUpdate] DEFAULT (getdate()),
[timestamp] [timestamp] NOT NULL,
[WebFeatures] [int] NOT NULL CONSTRAINT [DF_ARCustomerContact_WebFeatures] DEFAULT ((0)),
[CustomerContactID] [int] NOT NULL IDENTITY(1, 1)
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCustomerContact] ADD CONSTRAINT [PK_ARCustomerContact] PRIMARY KEY NONCLUSTERED  ([CustomerContactID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCustomerContact] ADD CONSTRAINT [IX_ARCustomerContact_ContactID] UNIQUE CLUSTERED  ([ContactID], [CustomerID], [ContactTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCustomerContact] ADD CONSTRAINT [FK_ARCustomerContact_ContactID_CMContacts] FOREIGN KEY ([ContactID]) REFERENCES [dbo].[CMContacts] ([ContactID])
GO
ALTER TABLE [dbo].[ARCustomerContact] ADD CONSTRAINT [FK_ARCustomerContact_ContactTypeID_CMContactTypes] FOREIGN KEY ([ContactTypeID]) REFERENCES [dbo].[CMContactTypes] ([ContactTypeID])
GO
ALTER TABLE [dbo].[ARCustomerContact] WITH NOCHECK ADD CONSTRAINT [FK_ARCustomerContact_CustomerID_ARCustomers] FOREIGN KEY ([CustomerID]) REFERENCES [dbo].[ARCustomers] ([CustomerID])
GO
  • [dbo].[v_CMContacts]
  • [dbo].[v_CMContactsWithCompanies]
  • [dbo].[v_CustomerContactJobTitle]