Tables [dbo].[OrderNoteDetailExternalMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created3:33:55 PM Thursday, December 6, 2018
Last Modified3:33:57 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OrderNoteDetailExternalMap: OrderNoteDetailExternalMapIDOrderNoteDetailExternalMapIDint4
No
1 - 1
Foreign Keys FK_OrderNoteDetailExternalMap_OrderNoteDetail: [dbo].[OrderNoteDetail].OrderNoteDetailFIDIndexes IX_OrderNoteDetailExternalMap_OrderNoteDetailFID: OrderNoteDetailFIDOrderNoteDetailFIDint4
No
Foreign Keys FK_OrderNoteDetailExternalMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_OrderNoteDetailExternalMap_XmlInterfaceFIDExternalID: XmlInterfaceFID\ExternalIDXmlInterfaceFIDint4
No
Indexes IX_OrderNoteDetailExternalMap_XmlInterfaceFIDExternalID: XmlInterfaceFID\ExternalIDExternalIDvarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OrderNoteDetailExternalMap: OrderNoteDetailExternalMapIDPK_OrderNoteDetailExternalMapOrderNoteDetailExternalMapID
Yes
IX_OrderNoteDetailExternalMap_XmlInterfaceFIDExternalIDXmlInterfaceFID, ExternalID
Yes
IX_OrderNoteDetailExternalMap_OrderNoteDetailFIDOrderNoteDetailFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OrderNoteDetailExternalMap_OrderNoteDetailCascadeOrderNoteDetailFID->[dbo].[OrderNoteDetail].[OrderNoteDetailID]
FK_OrderNoteDetailExternalMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OrderNoteDetailExternalMap]
(
[OrderNoteDetailExternalMapID] [int] NOT NULL IDENTITY(1, 1),
[OrderNoteDetailFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalID] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderNoteDetailExternalMap] ADD CONSTRAINT [PK_OrderNoteDetailExternalMap] PRIMARY KEY CLUSTERED  ([OrderNoteDetailExternalMapID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OrderNoteDetailExternalMap_OrderNoteDetailFID] ON [dbo].[OrderNoteDetailExternalMap] ([OrderNoteDetailFID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_OrderNoteDetailExternalMap_XmlInterfaceFIDExternalID] ON [dbo].[OrderNoteDetailExternalMap] ([XmlInterfaceFID], [ExternalID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderNoteDetailExternalMap] ADD CONSTRAINT [FK_OrderNoteDetailExternalMap_OrderNoteDetail] FOREIGN KEY ([OrderNoteDetailFID]) REFERENCES [dbo].[OrderNoteDetail] ([OrderNoteDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[OrderNoteDetailExternalMap] ADD CONSTRAINT [FK_OrderNoteDetailExternalMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[OrderNoteDetailExternalMap] TO [MssExec]
GRANT INSERT ON  [dbo].[OrderNoteDetailExternalMap] TO [MssExec]
GRANT DELETE ON  [dbo].[OrderNoteDetailExternalMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrderNoteDetailExternalMap] TO [MssExec]
GO
Uses