Tables [dbo].[XmlInternationalBookingNumberTransitTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)3
Created9:02:42 AM Friday, December 7, 2018
Last Modified9:02:42 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInternationalBookingNumberTransitTypeMap: XmlInternationalBookingNumberTransitTypeMapIDXmlInternationalBookingNumberTransitTypeMapIDint4
No
1 - 1
Cluster Key IX_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitTypeFID_XMLInterface_ExternalCode: InternationalBookingNumberTransitTypeFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalBookingNumberTransitTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInternationalBookingNumberTransitTypeMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeXmlInterfaceFIDint4
No
Cluster Key IX_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitTypeFID_XMLInterface_ExternalCode: InternationalBookingNumberTransitTypeFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitType: [dbo].[InternationalBookingNumberTransitType].InternationalBookingNumberTransitTypeFIDInternationalBookingNumberTransitTypeFIDint4
No
Cluster Key IX_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitTypeFID_XMLInterface_ExternalCode: InternationalBookingNumberTransitTypeFID\XmlInterfaceFID\ExternalCodeIndexes IX_XmlInternationalBookingNumberTransitTypeMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInternationalBookingNumberTransitTypeMap: XmlInternationalBookingNumberTransitTypeMapIDPK_XmlInternationalBookingNumberTransitTypeMapXmlInternationalBookingNumberTransitTypeMapID
Yes
Cluster Key IX_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitTypeFID_XMLInterface_ExternalCode: InternationalBookingNumberTransitTypeFID\XmlInterfaceFID\ExternalCodeIX_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitTypeFID_XMLInterface_ExternalCodeInternationalBookingNumberTransitTypeFID, XmlInterfaceFID, ExternalCode
Yes
IX_XmlInternationalBookingNumberTransitTypeMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitTypeInternationalBookingNumberTransitTypeFID->[dbo].[InternationalBookingNumberTransitType].[InternationalBookingNumberTransitTypeID]
FK_XmlInternationalBookingNumberTransitTypeMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap]
(
[XmlInternationalBookingNumberTransitTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalBookingNumberTransitTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [PK_XmlInternationalBookingNumberTransitTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlInternationalBookingNumberTransitTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [IX_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitTypeFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED  ([InternationalBookingNumberTransitTypeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [IX_XmlInternationalBookingNumberTransitTypeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [FK_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitType] FOREIGN KEY ([InternationalBookingNumberTransitTypeFID]) REFERENCES [dbo].[InternationalBookingNumberTransitType] ([InternationalBookingNumberTransitTypeID])
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [FK_XmlInternationalBookingNumberTransitTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlInternationalBookingNumberTransitTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInternationalBookingNumberTransitTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInternationalBookingNumberTransitTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInternationalBookingNumberTransitTypeMap] TO [MssExec]
GO
Uses