Tables [dbo].[XmlInterfaceEqTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created9:06:24 AM Friday, November 22, 2024
Last Modified9:06:24 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInterfaceEqTypeMap: XmlInterfaceEqTypeMapIdXmlInterfaceEqTypeMapIdint4
No
1 - 1
Foreign Keys FK_XmlInterfaceEqTypeMap_LaborType: [dbo].[EqType].EqTypeFidEqTypeFidint4
No
Foreign Keys FK_XmlInterfaceEqTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFidIndexes IX_XmlInterfaceEqTypeMap_XmlInterfaceEqType_ExternalCode: XmlInterfaceFid\ExternalCodeXmlInterfaceFidint4
No
Indexes IX_XmlInterfaceEqTypeMap_XmlInterfaceEqType_ExternalCode: XmlInterfaceFid\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInterfaceEqTypeMap: XmlInterfaceEqTypeMapIdPK_XmlInterfaceEqTypeMapXmlInterfaceEqTypeMapId
Yes
IX_XmlInterfaceEqTypeMap_XmlInterfaceEqType_ExternalCodeXmlInterfaceFid, ExternalCode
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceEqTypeMap_LaborTypeCascadeEqTypeFid->[dbo].[EqType].[TypeNumber]
FK_XmlInterfaceEqTypeMap_XmlInterfaceCascadeXmlInterfaceFid->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInterfaceEqTypeMap]
(
[XmlInterfaceEqTypeMapId] [int] NOT NULL IDENTITY(1, 1),
[EqTypeFid] [int] NOT NULL,
[XmlInterfaceFid] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceEqTypeMap] ADD CONSTRAINT [PK_XmlInterfaceEqTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfaceEqTypeMapId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceEqTypeMap] ADD CONSTRAINT [IX_XmlInterfaceEqTypeMap_XmlInterfaceEqType_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFid], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceEqTypeMap] ADD CONSTRAINT [FK_XmlInterfaceEqTypeMap_LaborType] FOREIGN KEY ([EqTypeFid]) REFERENCES [dbo].[EqType] ([TypeNumber]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfaceEqTypeMap] ADD CONSTRAINT [FK_XmlInterfaceEqTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFid]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceEqTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceEqTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceEqTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceEqTypeMap] TO [MssExec]
GO
Uses
Used By