Tables [dbo].[XmlInternationalPortMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:52:16 AM Friday, December 7, 2018
Last Modified9:52:18 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInternationalPortMap: XmlInternationalPortMapIDXmlInternationalPortMapIDint4
No
1 - 1
Cluster Key IX_XmlInternationalPortMap_InternationalPortFID_XMLInterface_ExternalCode: InternationalPortFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalPortMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInternationalPortMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeXmlInterfaceFIDint4
No
Cluster Key IX_XmlInternationalPortMap_InternationalPortFID_XMLInterface_ExternalCode: InternationalPortFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalPortMap_InternationalPort: [dbo].[InternationalPort].InternationalPortFIDInternationalPortFIDint4
No
Cluster Key IX_XmlInternationalPortMap_InternationalPortFID_XMLInterface_ExternalCode: InternationalPortFID\XmlInterfaceFID\ExternalCodeIndexes IX_XmlInternationalPortMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInternationalPortMap: XmlInternationalPortMapIDPK_XmlInternationalPortMapXmlInternationalPortMapID
Yes
Cluster Key IX_XmlInternationalPortMap_InternationalPortFID_XMLInterface_ExternalCode: InternationalPortFID\XmlInterfaceFID\ExternalCodeIX_XmlInternationalPortMap_InternationalPortFID_XMLInterface_ExternalCodeInternationalPortFID, XmlInterfaceFID, ExternalCode
Yes
IX_XmlInternationalPortMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlInternationalPortMap_InternationalPortInternationalPortFID->[dbo].[InternationalPort].[InternationalPortID]
FK_XmlInternationalPortMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInternationalPortMap]
(
[XmlInternationalPortMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalPortFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [PK_XmlInternationalPortMap] PRIMARY KEY NONCLUSTERED  ([XmlInternationalPortMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [IX_XmlInternationalPortMap_InternationalPortFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED  ([InternationalPortFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [IX_XmlInternationalPortMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [FK_XmlInternationalPortMap_InternationalPort] FOREIGN KEY ([InternationalPortFID]) REFERENCES [dbo].[InternationalPort] ([InternationalPortID])
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [FK_XmlInternationalPortMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlInternationalPortMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInternationalPortMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInternationalPortMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInternationalPortMap] TO [MssExec]
GO
Uses