Tables [dbo].[XmlAutoClassMap]
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_XmlAutoClassMap: XmlAutoClassMapIDXmlAutoClassMapIDint4
No
1 - 1
Cluster Key IX_XmlAutoClassMap_AutoClass_XMLInterface_ExternalCode: AutoClassFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlAutoClassMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlAutoClassMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeXmlInterfaceFIDint4
No
Cluster Key IX_XmlAutoClassMap_AutoClass_XMLInterface_ExternalCode: AutoClassFID\XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlAutoClassMap_AutoClass: [dbo].[AutoClass].AutoClassFIDAutoClassFIDint4
No
Cluster Key IX_XmlAutoClassMap_AutoClass_XMLInterface_ExternalCode: AutoClassFID\XmlInterfaceFID\ExternalCodeIndexes IX_XmlAutoClassMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlAutoClassMap: XmlAutoClassMapIDPK_XmlAutoClassMapXmlAutoClassMapID
Yes
Cluster Key IX_XmlAutoClassMap_AutoClass_XMLInterface_ExternalCode: AutoClassFID\XmlInterfaceFID\ExternalCodeIX_XmlAutoClassMap_AutoClass_XMLInterface_ExternalCodeAutoClassFID, XmlInterfaceFID, ExternalCode
Yes
IX_XmlAutoClassMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlAutoClassMap_AutoClassAutoClassFID->[dbo].[AutoClass].[AutoClassID]
FK_XmlAutoClassMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlAutoClassMap]
(
[XmlAutoClassMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[AutoClassFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlAutoClassMap] ADD CONSTRAINT [PK_XmlAutoClassMap] PRIMARY KEY NONCLUSTERED  ([XmlAutoClassMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlAutoClassMap] ADD CONSTRAINT [IX_XmlAutoClassMap_AutoClass_XMLInterface_ExternalCode] UNIQUE CLUSTERED  ([AutoClassFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlAutoClassMap] ADD CONSTRAINT [IX_XmlAutoClassMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlAutoClassMap] ADD CONSTRAINT [FK_XmlAutoClassMap_AutoClass] FOREIGN KEY ([AutoClassFID]) REFERENCES [dbo].[AutoClass] ([AutoClassID])
GO
ALTER TABLE [dbo].[XmlAutoClassMap] ADD CONSTRAINT [FK_XmlAutoClassMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlAutoClassMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlAutoClassMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlAutoClassMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlAutoClassMap] TO [MssExec]
GO
Uses