Tables [dbo].[XmlInternationalCustomsInspectionLocationMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)13
Created9:06:54 AM Friday, December 7, 2018
Last Modified9:06:54 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInternationalCustomsInspectionLocationMap: XmlInternationalCustomsInspectionLocationMapIDXmlInternationalCustomsInspectionLocationMapIDint4
No
1 - 1
Cluster Key IX_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocation_XMLInterface_ExternalCode: InternationalCustomsInspectionLocationFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalCustomsInspectionLocationMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInternationalCustomsInspectionLocationMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeXmlInterfaceFIDint4
No
Cluster Key IX_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocation_XMLInterface_ExternalCode: InternationalCustomsInspectionLocationFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocation: [dbo].[InternationalCustomsInspectionLocation].InternationalCustomsInspectionLocationFIDInternationalCustomsInspectionLocationFIDint4
No
Cluster Key IX_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocation_XMLInterface_ExternalCode: InternationalCustomsInspectionLocationFID\XmlInterfaceFID\ExternalCodeIndexes IX_XmlInternationalCustomsInspectionLocationMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInternationalCustomsInspectionLocationMap: XmlInternationalCustomsInspectionLocationMapIDPK_XmlInternationalCustomsInspectionLocationMapXmlInternationalCustomsInspectionLocationMapID
Yes
Cluster Key IX_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocation_XMLInterface_ExternalCode: InternationalCustomsInspectionLocationFID\XmlInterfaceFID\ExternalCodeIX_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocation_XMLInterface_ExternalCodeInternationalCustomsInspectionLocationFID, XmlInterfaceFID, ExternalCode
Yes
IX_XmlInternationalCustomsInspectionLocationMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocationInternationalCustomsInspectionLocationFID->[dbo].[InternationalCustomsInspectionLocation].[InternationalCustomsInspectionLocationID]
FK_XmlInternationalCustomsInspectionLocationMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInternationalCustomsInspectionLocationMap]
(
[XmlInternationalCustomsInspectionLocationMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalCustomsInspectionLocationFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionLocationMap] ADD CONSTRAINT [PK_XmlInternationalCustomsInspectionLocationMap] PRIMARY KEY NONCLUSTERED  ([XmlInternationalCustomsInspectionLocationMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionLocationMap] ADD CONSTRAINT [IX_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocation_XMLInterface_ExternalCode] UNIQUE CLUSTERED  ([InternationalCustomsInspectionLocationFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionLocationMap] ADD CONSTRAINT [IX_XmlInternationalCustomsInspectionLocationMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionLocationMap] ADD CONSTRAINT [FK_XmlInternationalCustomsInspectionLocationMap_InternationalCustomsInspectionLocation] FOREIGN KEY ([InternationalCustomsInspectionLocationFID]) REFERENCES [dbo].[InternationalCustomsInspectionLocation] ([InternationalCustomsInspectionLocationID])
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionLocationMap] ADD CONSTRAINT [FK_XmlInternationalCustomsInspectionLocationMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlInternationalCustomsInspectionLocationMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInternationalCustomsInspectionLocationMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInternationalCustomsInspectionLocationMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInternationalCustomsInspectionLocationMap] TO [MssExec]
GO
Uses