Tables [dbo].[XmlLeadTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created3:44:52 PM Tuesday, May 8, 2012
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlLeadTypeMap: XmlLeadTypeMapIDXmlLeadTypeMapIDint4
No
1 - 1
Foreign Keys FK_XmlLeadTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlLeadTypeMap_ImlInterfaceFID_LeadTypeFID: XmlInterfaceFID\LeadTypeFIDXmlInterfaceFIDint4
No
Foreign Keys FK_XmlLeadTypeMap_LeadType: [dbo].[LeadType].LeadTypeFIDIndexes IX_XmlLeadTypeMap_ImlInterfaceFID_LeadTypeFID: XmlInterfaceFID\LeadTypeFIDLeadTypeFIDint4
No
ExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlLeadTypeMap: XmlLeadTypeMapIDPK_XmlLeadTypeMapXmlLeadTypeMapID
Yes
IX_XmlLeadTypeMap_ImlInterfaceFID_LeadTypeFIDXmlInterfaceFID, LeadTypeFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlLeadTypeMap_LeadTypeLeadTypeFID->[dbo].[LeadType].[PriKey]
FK_XmlLeadTypeMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlLeadTypeMap]
(
[XmlLeadTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[LeadTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlLeadTypeMap] ADD CONSTRAINT [PK_XmlLeadTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlLeadTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlLeadTypeMap] ADD CONSTRAINT [IX_XmlLeadTypeMap_ImlInterfaceFID_LeadTypeFID] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [LeadTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlLeadTypeMap] ADD CONSTRAINT [FK_XmlLeadTypeMap_LeadType] FOREIGN KEY ([LeadTypeFID]) REFERENCES [dbo].[LeadType] ([PriKey])
GO
ALTER TABLE [dbo].[XmlLeadTypeMap] ADD CONSTRAINT [FK_XmlLeadTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlLeadTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlLeadTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlLeadTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlLeadTypeMap] TO [MssExec]
GO
Uses