Tables [dbo].[XmlInterfaceCommTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)60
Created10:40:24 AM Monday, March 30, 2015
Last Modified10:40:31 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInterfaceCommTypeMap: XmlInterfaceCommTypeMapIDXmlInterfaceCommTypeMapIDint4
No
1 - 1
Foreign Keys FK_XmlInterfaceCommTypeMap_CommType: [dbo].[CommType].CommTypeFIDIndexes IX_XmlInterfaceCommTypeMap_XMLInterface_CommType: XmlInterfaceFID\CommTypeFIDCommTypeFIDint4
No
Foreign Keys FK_XmlInterfaceCommTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInterfaceCommTypeMap_XMLInterface_CommType: XmlInterfaceFID\CommTypeFIDIndexes IX_XmlInterfaceCommTypeMap_XMLInterface_ExternalCommTypeCode: XmlInterfaceFID\ExternalCommTypeCodeXmlInterfaceFIDint4
No
Indexes IX_XmlInterfaceCommTypeMap_XMLInterface_ExternalCommTypeCode: XmlInterfaceFID\ExternalCommTypeCodeExternalCommTypeCodevarchar(16)16
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInterfaceCommTypeMap: XmlInterfaceCommTypeMapIDPK_XmlInterfaceCommTypeMapXmlInterfaceCommTypeMapID
Yes
IX_XmlInterfaceCommTypeMap_XMLInterface_CommTypeXmlInterfaceFID, CommTypeFID
Yes
IX_XmlInterfaceCommTypeMap_XMLInterface_ExternalCommTypeCodeXmlInterfaceFID, ExternalCommTypeCode
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceCommTypeMap_CommTypeCascadeCommTypeFID->[dbo].[CommType].[PriKey]
FK_XmlInterfaceCommTypeMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
Extended Properties
NameLevel 2 TypeLevel 2 NameValue
DescriptionHolds mappings an external interface to a commodity type.
DescriptionCOLUMNExternalCommTypeCodeCode used by an external interface to represent a commodity type.
DescriptionCOLUMNXmlInterfaceFIDForeign key to an external interface.
SQL Script
CREATE TABLE [dbo].[XmlInterfaceCommTypeMap]
(
[XmlInterfaceCommTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[CommTypeFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalCommTypeCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceCommTypeMap] ADD CONSTRAINT [PK_XmlInterfaceCommTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfaceCommTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceCommTypeMap] ADD CONSTRAINT [IX_XmlInterfaceCommTypeMap_XMLInterface_CommType] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [CommTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceCommTypeMap] ADD CONSTRAINT [IX_XmlInterfaceCommTypeMap_XMLInterface_ExternalCommTypeCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCommTypeCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceCommTypeMap] ADD CONSTRAINT [FK_XmlInterfaceCommTypeMap_CommType] FOREIGN KEY ([CommTypeFID]) REFERENCES [dbo].[CommType] ([PriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfaceCommTypeMap] ADD CONSTRAINT [FK_XmlInterfaceCommTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceCommTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceCommTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceCommTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceCommTypeMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Holds mappings an external interface to a commodity type.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfaceCommTypeMap', NULL, NULL
GO
EXEC sp_addextendedproperty N'Description', N'Code used by an external interface to represent a commodity type.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfaceCommTypeMap', 'COLUMN', N'ExternalCommTypeCode'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to an external interface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfaceCommTypeMap', 'COLUMN', N'XmlInterfaceFID'
GO
Uses