Tables [dbo].[XmlInterfaceCommodityDetailMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created10:03:28 AM Friday, December 7, 2018
Last Modified10:03:47 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInterfaceCommodityDetailMap: XmlInterfaceCommodityDetailMapIDXmlInterfaceCommodityDetailMapIDint4
No
1 - 1
Foreign Keys FK_XmlInterfaceCommodityDetailMap_CommodityDetail: [dbo].[CommodityDetail].CommodityDetailFIDIndexes IX_XmlInterfaceCommodityDetailMap_XMLInterface_CommodityDetail: XmlInterfaceFID\CommodityDetailFIDCommodityDetailFIDint4
No
Foreign Keys FK_XmlInterfaceCommodityDetailMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInterfaceCommodityDetailMap_XMLInterface_CommodityDetail: XmlInterfaceFID\CommodityDetailFIDIndexes IX_XmlInterfaceCommodityDetailMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeXmlInterfaceFIDint4
No
Indexes IX_XmlInterfaceCommodityDetailMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInterfaceCommodityDetailMap: XmlInterfaceCommodityDetailMapIDPK_XmlInterfaceCommodityDetailMapXmlInterfaceCommodityDetailMapID
Yes
IX_XmlInterfaceCommodityDetailMap_XMLInterface_CommodityDetailXmlInterfaceFID, CommodityDetailFID
Yes
IX_XmlInterfaceCommodityDetailMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceCommodityDetailMap_CommodityDetailCascadeCommodityDetailFID->[dbo].[CommodityDetail].[CommodityDetailID]
FK_XmlInterfaceCommodityDetailMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInterfaceCommodityDetailMap]
(
[XmlInterfaceCommodityDetailMapID] [int] NOT NULL IDENTITY(1, 1),
[CommodityDetailFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceCommodityDetailMap] ADD CONSTRAINT [PK_XmlInterfaceCommodityDetailMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfaceCommodityDetailMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceCommodityDetailMap] ADD CONSTRAINT [IX_XmlInterfaceCommodityDetailMap_XMLInterface_CommodityDetail] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [CommodityDetailFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceCommodityDetailMap] ADD CONSTRAINT [IX_XmlInterfaceCommodityDetailMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceCommodityDetailMap] ADD CONSTRAINT [FK_XmlInterfaceCommodityDetailMap_CommodityDetail] FOREIGN KEY ([CommodityDetailFID]) REFERENCES [dbo].[CommodityDetail] ([CommodityDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfaceCommodityDetailMap] ADD CONSTRAINT [FK_XmlInterfaceCommodityDetailMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceCommodityDetailMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceCommodityDetailMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceCommodityDetailMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceCommodityDetailMap] TO [MssExec]
GO
Uses