Tables [dbo].[XmlOrderCancellationReasonMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)4
Created9:21:57 AM Friday, December 7, 2018
Last Modified9:22:14 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlOrderCancellationReasonMap: XmlOrderCancellationReasonMapIDXmlOrderCancellationReasonMapIDint4
No
1 - 1
Cluster Key IX_XmlOrderCancellationReasonMap_OrderCancellationReasonFID_XMLInterface_ExternalCode: OrderCancellationReasonFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlOrderCancellationReasonMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlOrderCancellationReasonMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeXmlInterfaceFIDint4
No
Cluster Key IX_XmlOrderCancellationReasonMap_OrderCancellationReasonFID_XMLInterface_ExternalCode: OrderCancellationReasonFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlOrderCancellationReasonMap_OrderCancellationReason: [dbo].[OrderCancellationReason].OrderCancellationReasonFIDOrderCancellationReasonFIDint4
No
Cluster Key IX_XmlOrderCancellationReasonMap_OrderCancellationReasonFID_XMLInterface_ExternalCode: OrderCancellationReasonFID\XmlInterfaceFID\ExternalCodeIndexes IX_XmlOrderCancellationReasonMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlOrderCancellationReasonMap: XmlOrderCancellationReasonMapIDPK_XmlOrderCancellationReasonMapXmlOrderCancellationReasonMapID
Yes
Cluster Key IX_XmlOrderCancellationReasonMap_OrderCancellationReasonFID_XMLInterface_ExternalCode: OrderCancellationReasonFID\XmlInterfaceFID\ExternalCodeIX_XmlOrderCancellationReasonMap_OrderCancellationReasonFID_XMLInterface_ExternalCodeOrderCancellationReasonFID, XmlInterfaceFID, ExternalCode
Yes
IX_XmlOrderCancellationReasonMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlOrderCancellationReasonMap_OrderCancellationReasonOrderCancellationReasonFID->[dbo].[OrderCancellationReason].[OrderCancellationReasonID]
FK_XmlOrderCancellationReasonMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlOrderCancellationReasonMap]
(
[XmlOrderCancellationReasonMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[OrderCancellationReasonFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [PK_XmlOrderCancellationReasonMap] PRIMARY KEY NONCLUSTERED  ([XmlOrderCancellationReasonMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [IX_XmlOrderCancellationReasonMap_OrderCancellationReasonFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED  ([OrderCancellationReasonFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [IX_XmlOrderCancellationReasonMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [FK_XmlOrderCancellationReasonMap_OrderCancellationReason] FOREIGN KEY ([OrderCancellationReasonFID]) REFERENCES [dbo].[OrderCancellationReason] ([OrderCancellationReasonID])
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [FK_XmlOrderCancellationReasonMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlOrderCancellationReasonMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlOrderCancellationReasonMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlOrderCancellationReasonMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlOrderCancellationReasonMap] TO [MssExec]
GO
Uses