Tables [dbo].[XmlImportHistory]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created4:03:30 PM Tuesday, May 26, 2015
Last Modified4:03:30 PM Tuesday, May 26, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_XmlImportHistory: XmlImportHistoryIDIndexes IX_XmlImportHistory_Orders: OrderFID\XmlImportHistoryIDXmlImportHistoryIDint4
No
1 - 1
Foreign Keys FK_XmlImportHistory_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDXmlInterfaceFIDint4
Yes
DateDownloadeddatetime8
No
Foreign Keys FK_XmlImportHistory_Orders: [dbo].[Orders].OrderFIDIndexes IX_XmlImportHistory_Orders: OrderFID\XmlImportHistoryIDOrderFIDint4
Yes
ErrorCodeint4
Yes
StatusCodeint4
Yes
XmlDatavarchar(max)max
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_XmlImportHistory: XmlImportHistoryIDPK_XmlImportHistoryXmlImportHistoryID
Yes
IX_XmlImportHistory_OrdersOrderFID, XmlImportHistoryID
Foreign Keys Foreign Keys
NameColumns
FK_XmlImportHistory_OrdersOrderFID->[dbo].[Orders].[PriKey]
FK_XmlImportHistory_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlImportHistory]
(
[XmlImportHistoryID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NULL,
[DateDownloaded] [datetime] NOT NULL,
[OrderFID] [int] NULL,
[ErrorCode] [int] NULL,
[StatusCode] [int] NULL,
[XmlData] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlImportHistory] ADD CONSTRAINT [PK_XmlImportHistory] PRIMARY KEY CLUSTERED  ([XmlImportHistoryID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_XmlImportHistory_Orders] ON [dbo].[XmlImportHistory] ([OrderFID], [XmlImportHistoryID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlImportHistory] ADD CONSTRAINT [FK_XmlImportHistory_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
ALTER TABLE [dbo].[XmlImportHistory] ADD CONSTRAINT [FK_XmlImportHistory_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlImportHistory] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlImportHistory] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlImportHistory] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlImportHistory] TO [MssExec]
GO
Uses
Used By