Tables [dbo].[XmlInterfacePayTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)3
Created5:34:48 PM Monday, May 4, 2009
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInterfacePayTypeMap: XmlInterfacePayTypeMapIDXmlInterfacePayTypeMapIDint4
No
1 - 1
Foreign Keys FK_XmlInterfacePayTypeMap_PayType: [dbo].[PayType].PayTypeFIDIndexes IX_XmlInterfacePayTypeMap_XMLInterface_PayType: XmlInterfaceFID\PayTypeFIDPayTypeFIDint4
No
Foreign Keys FK_XmlInterfacePayTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInterfacePayTypeMap_XMLInterface_ExternalPayTypeCode: XmlInterfaceFID\ExternalPayTypeCodeIndexes IX_XmlInterfacePayTypeMap_XMLInterface_PayType: XmlInterfaceFID\PayTypeFIDXmlInterfaceFIDint4
No
Indexes IX_XmlInterfacePayTypeMap_XMLInterface_ExternalPayTypeCode: XmlInterfaceFID\ExternalPayTypeCodeExternalPayTypeCodevarchar(16)16
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_XmlInterfacePayTypeMap: XmlInterfacePayTypeMapIDPK_XmlInterfacePayTypeMapXmlInterfacePayTypeMapID
Yes
80
IX_XmlInterfacePayTypeMap_XMLInterface_ExternalPayTypeCodeXmlInterfaceFID, ExternalPayTypeCode
Yes
80
IX_XmlInterfacePayTypeMap_XMLInterface_PayTypeXmlInterfaceFID, PayTypeFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfacePayTypeMap_PayTypeCascadePayTypeFID->[dbo].[PayType].[PayTypeID]
FK_XmlInterfacePayTypeMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
Extended Properties
NameLevel 2 TypeLevel 2 NameValue
DescriptionHolds mappings an external interface to a pay type.
DescriptionCOLUMNExternalPayTypeCodeCode used by an external interface to represent a pay type.
DescriptionCOLUMNXmlInterfaceFIDForeign key to an external interface.
SQL Script
CREATE TABLE [dbo].[XmlInterfacePayTypeMap]
(
[XmlInterfacePayTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[PayTypeFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalPayTypeCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfacePayTypeMap] ADD CONSTRAINT [PK_XmlInterfacePayTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfacePayTypeMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfacePayTypeMap] ADD CONSTRAINT [IX_XmlInterfacePayTypeMap_XMLInterface_ExternalPayTypeCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalPayTypeCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfacePayTypeMap] ADD CONSTRAINT [IX_XmlInterfacePayTypeMap_XMLInterface_PayType] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [PayTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfacePayTypeMap] ADD CONSTRAINT [FK_XmlInterfacePayTypeMap_PayType] FOREIGN KEY ([PayTypeFID]) REFERENCES [dbo].[PayType] ([PayTypeID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfacePayTypeMap] ADD CONSTRAINT [FK_XmlInterfacePayTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfacePayTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfacePayTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfacePayTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfacePayTypeMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Holds mappings an external interface to a pay type.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfacePayTypeMap', NULL, NULL
GO
EXEC sp_addextendedproperty N'Description', N'Code used by an external interface to represent a pay type.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfacePayTypeMap', 'COLUMN', N'ExternalPayTypeCode'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to an external interface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfacePayTypeMap', 'COLUMN', N'XmlInterfaceFID'
GO
Uses
Used By