Tables [dbo].[XmlInterfaceRateTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)9
Created11:16:05 AM Wednesday, January 9, 2013
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInterfaceRateTypeMap: XmlInterfaceRateTypeMapIDXmlInterfaceRateTypeMapIDint4
No
1 - 1
Foreign Keys FK_XmlInterfaceRateTypeMap_RateType: [dbo].[RateTypes].RateTypeFIDIndexes IX_XmlInterfaceRateTypeMap_XMLInterface_RateType: XmlInterfaceFID\RateTypeFIDRateTypeFIDint4
No
Foreign Keys FK_XmlInterfaceRateTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInterfaceRateTypeMap_XMLInterface_ExternalRateTypeCode: XmlInterfaceFID\ExternalRateTypeCodeIndexes IX_XmlInterfaceRateTypeMap_XMLInterface_RateType: XmlInterfaceFID\RateTypeFIDXmlInterfaceFIDint4
No
Indexes IX_XmlInterfaceRateTypeMap_XMLInterface_ExternalRateTypeCode: XmlInterfaceFID\ExternalRateTypeCodeExternalRateTypeCodevarchar(16)16
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInterfaceRateTypeMap: XmlInterfaceRateTypeMapIDPK_XmlInterfaceRateTypeMapXmlInterfaceRateTypeMapID
Yes
IX_XmlInterfaceRateTypeMap_XMLInterface_ExternalRateTypeCodeXmlInterfaceFID, ExternalRateTypeCode
Yes
IX_XmlInterfaceRateTypeMap_XMLInterface_RateTypeXmlInterfaceFID, RateTypeFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceRateTypeMap_RateTypeCascadeRateTypeFID->[dbo].[RateTypes].[RTypePriKey]
FK_XmlInterfaceRateTypeMap_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 rate type.
DescriptionCOLUMNExternalRateTypeCodeCode used by an external interface to represent a rate type.
DescriptionCOLUMNXmlInterfaceFIDForeign key to an external interface.
SQL Script
CREATE TABLE [dbo].[XmlInterfaceRateTypeMap]
(
[XmlInterfaceRateTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[RateTypeFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalRateTypeCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceRateTypeMap] ADD CONSTRAINT [PK_XmlInterfaceRateTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfaceRateTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceRateTypeMap] ADD CONSTRAINT [IX_XmlInterfaceRateTypeMap_XMLInterface_ExternalRateTypeCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalRateTypeCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceRateTypeMap] ADD CONSTRAINT [IX_XmlInterfaceRateTypeMap_XMLInterface_RateType] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [RateTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceRateTypeMap] ADD CONSTRAINT [FK_XmlInterfaceRateTypeMap_RateType] FOREIGN KEY ([RateTypeFID]) REFERENCES [dbo].[RateTypes] ([RTypePriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfaceRateTypeMap] ADD CONSTRAINT [FK_XmlInterfaceRateTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceRateTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceRateTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceRateTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceRateTypeMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Holds mappings an external interface to a rate type.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfaceRateTypeMap', NULL, NULL
GO
EXEC sp_addextendedproperty N'Description', N'Code used by an external interface to represent a rate type.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfaceRateTypeMap', 'COLUMN', N'ExternalRateTypeCode'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to an external interface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlInterfaceRateTypeMap', 'COLUMN', N'XmlInterfaceFID'
GO
Uses