Tables [dbo].[XmlInterfaceHaulModeMap]
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_XmlInterfaceHaulModeMap: XmlInterfaceHaulModeMapIDXmlInterfaceHaulModeMapIDint4
No
1 - 1
Foreign Keys FK_XmlInterfaceHaulModeMap_HaulMode: [dbo].[HaulMode].HaulModeFIDIndexes IX_XmlInterfaceHaulModeMap_XMLInterface_HaulMode: XmlInterfaceFID\HaulModeFIDHaulModeFIDint4
No
Foreign Keys FK_XmlInterfaceHaulModeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInterfaceHaulModeMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeIndexes IX_XmlInterfaceHaulModeMap_XMLInterface_HaulMode: XmlInterfaceFID\HaulModeFIDXmlInterfaceFIDint4
No
Indexes IX_XmlInterfaceHaulModeMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInterfaceHaulModeMap: XmlInterfaceHaulModeMapIDPK_XmlInterfaceHaulModeMapXmlInterfaceHaulModeMapID
Yes
IX_XmlInterfaceHaulModeMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
IX_XmlInterfaceHaulModeMap_XMLInterface_HaulModeXmlInterfaceFID, HaulModeFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceHaulModeMap_HaulModeCascadeHaulModeFID->[dbo].[HaulMode].[HaulModeID]
FK_XmlInterfaceHaulModeMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInterfaceHaulModeMap]
(
[XmlInterfaceHaulModeMapID] [int] NOT NULL IDENTITY(1, 1),
[HaulModeFID] [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].[XmlInterfaceHaulModeMap] ADD CONSTRAINT [PK_XmlInterfaceHaulModeMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfaceHaulModeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceHaulModeMap] ADD CONSTRAINT [IX_XmlInterfaceHaulModeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceHaulModeMap] ADD CONSTRAINT [IX_XmlInterfaceHaulModeMap_XMLInterface_HaulMode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [HaulModeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceHaulModeMap] ADD CONSTRAINT [FK_XmlInterfaceHaulModeMap_HaulMode] FOREIGN KEY ([HaulModeFID]) REFERENCES [dbo].[HaulMode] ([HaulModeID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfaceHaulModeMap] ADD CONSTRAINT [FK_XmlInterfaceHaulModeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceHaulModeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceHaulModeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceHaulModeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceHaulModeMap] TO [MssExec]
GO
Uses