Tables [dbo].[XmlInternationalCustomsAgentMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
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_XmlInternationalCustomsAgentMap: XmlInternationalCustomsAgentMapIDXmlInternationalCustomsAgentMapIDint4
No
1 - 1
Cluster Key IX_XmlInternationalCustomsAgentMap_InternationalCustomsAgentFID_XMLInterface_ExternalCode: InternationalCustomsAgentFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalCustomsAgentMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInternationalCustomsAgentMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeXmlInterfaceFIDint4
No
Cluster Key IX_XmlInternationalCustomsAgentMap_InternationalCustomsAgentFID_XMLInterface_ExternalCode: InternationalCustomsAgentFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlInternationalCustomsAgentMap_InternationalCustomsAgent: [dbo].[InternationalCustomsAgent].InternationalCustomsAgentFIDInternationalCustomsAgentFIDint4
No
Cluster Key IX_XmlInternationalCustomsAgentMap_InternationalCustomsAgentFID_XMLInterface_ExternalCode: InternationalCustomsAgentFID\XmlInterfaceFID\ExternalCodeIndexes IX_XmlInternationalCustomsAgentMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInternationalCustomsAgentMap: XmlInternationalCustomsAgentMapIDPK_XmlInternationalCustomsAgentMapXmlInternationalCustomsAgentMapID
Yes
Cluster Key IX_XmlInternationalCustomsAgentMap_InternationalCustomsAgentFID_XMLInterface_ExternalCode: InternationalCustomsAgentFID\XmlInterfaceFID\ExternalCodeIX_XmlInternationalCustomsAgentMap_InternationalCustomsAgentFID_XMLInterface_ExternalCodeInternationalCustomsAgentFID, XmlInterfaceFID, ExternalCode
Yes
IX_XmlInternationalCustomsAgentMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlInternationalCustomsAgentMap_InternationalCustomsAgentInternationalCustomsAgentFID->[dbo].[InternationalCustomsAgent].[InternationalCustomsAgentID]
FK_XmlInternationalCustomsAgentMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInternationalCustomsAgentMap]
(
[XmlInternationalCustomsAgentMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalCustomsAgentFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsAgentMap] ADD CONSTRAINT [PK_XmlInternationalCustomsAgentMap] PRIMARY KEY NONCLUSTERED  ([XmlInternationalCustomsAgentMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsAgentMap] ADD CONSTRAINT [IX_XmlInternationalCustomsAgentMap_InternationalCustomsAgentFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED  ([InternationalCustomsAgentFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsAgentMap] ADD CONSTRAINT [IX_XmlInternationalCustomsAgentMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCustomsAgentMap] ADD CONSTRAINT [FK_XmlInternationalCustomsAgentMap_InternationalCustomsAgent] FOREIGN KEY ([InternationalCustomsAgentFID]) REFERENCES [dbo].[InternationalCustomsAgent] ([InternationalCustomsAgentID])
GO
ALTER TABLE [dbo].[XmlInternationalCustomsAgentMap] ADD CONSTRAINT [FK_XmlInternationalCustomsAgentMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlInternationalCustomsAgentMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInternationalCustomsAgentMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInternationalCustomsAgentMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInternationalCustomsAgentMap] TO [MssExec]
GO
Uses