Tables [dbo].[XmlInternationalCustomsInspectionTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)5
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_XmlInternationalCustomsInspectionTypeMap: XmlInternationalCustomsInspectionTypeMapIDXmlInternationalCustomsInspectionTypeMapIDint4
No
1 - 1
Cluster Key IX_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionType_XMLInterface_ExternalCode: InternationalCustomsInspectionTypeFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalCustomsInspectionTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInternationalCustomsInspectionTypeMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeXmlInterfaceFIDint4
No
Cluster Key IX_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionType_XMLInterface_ExternalCode: InternationalCustomsInspectionTypeFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionType: [dbo].[InternationalCustomsInspectionType].InternationalCustomsInspectionTypeFIDInternationalCustomsInspectionTypeFIDint4
No
Cluster Key IX_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionType_XMLInterface_ExternalCode: InternationalCustomsInspectionTypeFID\XmlInterfaceFID\ExternalCodeIndexes IX_XmlInternationalCustomsInspectionTypeMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInternationalCustomsInspectionTypeMap: XmlInternationalCustomsInspectionTypeMapIDPK_XmlInternationalCustomsInspectionTypeMapXmlInternationalCustomsInspectionTypeMapID
Yes
Cluster Key IX_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionType_XMLInterface_ExternalCode: InternationalCustomsInspectionTypeFID\XmlInterfaceFID\ExternalCodeIX_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionType_XMLInterface_ExternalCodeInternationalCustomsInspectionTypeFID, XmlInterfaceFID, ExternalCode
Yes
IX_XmlInternationalCustomsInspectionTypeMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionTypeInternationalCustomsInspectionTypeFID->[dbo].[InternationalCustomsInspectionType].[InternationalCustomsInspectionTypeID]
FK_XmlInternationalCustomsInspectionTypeMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInternationalCustomsInspectionTypeMap]
(
[XmlInternationalCustomsInspectionTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalCustomsInspectionTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionTypeMap] ADD CONSTRAINT [PK_XmlInternationalCustomsInspectionTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlInternationalCustomsInspectionTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionTypeMap] ADD CONSTRAINT [IX_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionType_XMLInterface_ExternalCode] UNIQUE CLUSTERED  ([InternationalCustomsInspectionTypeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionTypeMap] ADD CONSTRAINT [IX_XmlInternationalCustomsInspectionTypeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionTypeMap] ADD CONSTRAINT [FK_XmlInternationalCustomsInspectionTypeMap_InternationalCustomsInspectionType] FOREIGN KEY ([InternationalCustomsInspectionTypeFID]) REFERENCES [dbo].[InternationalCustomsInspectionType] ([InternationalCustomsInspectionTypeID])
GO
ALTER TABLE [dbo].[XmlInternationalCustomsInspectionTypeMap] ADD CONSTRAINT [FK_XmlInternationalCustomsInspectionTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlInternationalCustomsInspectionTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInternationalCustomsInspectionTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInternationalCustomsInspectionTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInternationalCustomsInspectionTypeMap] TO [MssExec]
GO
Uses