Tables [dbo].[XmlInterfaceLaborTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created7:37:52 PM Tuesday, September 24, 2024
Last Modified7:37:52 PM Tuesday, September 24, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInterfaceLaborTypeMap: XmlInterfaceLaborTypeMapIdXmlInterfaceLaborTypeMapIdint4
No
1 - 1
Foreign Keys FK_XmlInterfaceLaborTypeMap_LaborType: [dbo].[LaborType].LaborTypeFidLaborTypeFidint4
No
Foreign Keys FK_XmlInterfaceLaborTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFidIndexes IX_XmlInterfaceLaborTypeMap_XmlInterfaceLaborType_ExternalCode: XmlInterfaceFid\ExternalCodeXmlInterfaceFidint4
No
Indexes IX_XmlInterfaceLaborTypeMap_XmlInterfaceLaborType_ExternalCode: XmlInterfaceFid\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInterfaceLaborTypeMap: XmlInterfaceLaborTypeMapIdPK_XmlInterfaceLaborTypeMapXmlInterfaceLaborTypeMapId
Yes
IX_XmlInterfaceLaborTypeMap_XmlInterfaceLaborType_ExternalCodeXmlInterfaceFid, ExternalCode
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceLaborTypeMap_LaborTypeCascadeLaborTypeFid->[dbo].[LaborType].[PriKey]
FK_XmlInterfaceLaborTypeMap_XmlInterfaceCascadeXmlInterfaceFid->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInterfaceLaborTypeMap]
(
[XmlInterfaceLaborTypeMapId] [int] NOT NULL IDENTITY(1, 1),
[LaborTypeFid] [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].[XmlInterfaceLaborTypeMap] ADD CONSTRAINT [PK_XmlInterfaceLaborTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfaceLaborTypeMapId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceLaborTypeMap] ADD CONSTRAINT [IX_XmlInterfaceLaborTypeMap_XmlInterfaceLaborType_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFid], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceLaborTypeMap] ADD CONSTRAINT [FK_XmlInterfaceLaborTypeMap_LaborType] FOREIGN KEY ([LaborTypeFid]) REFERENCES [dbo].[LaborType] ([PriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfaceLaborTypeMap] ADD CONSTRAINT [FK_XmlInterfaceLaborTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFid]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceLaborTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceLaborTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceLaborTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceLaborTypeMap] TO [MssExec]
GO
Uses
Used By