Tables [dbo].[XmlProductTypeVanlineMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)9
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_XmlProductTypeVanlineMap: XmlProductTypeVanlineMapIDXmlProductTypeVanlineMapIDint4
No
1 - 1
Foreign Keys FK_XmlProductTypeVanlineMap_ProductType: [dbo].[ProductType].ProductTypeFIDIndexes IX_XmlProductTypeVanlineMap_XMLInterface_ProductType: XmlInterfaceFID\ProductTypeFIDProductTypeFIDint4
No
Foreign Keys FK_XmlProductTypeVanlineMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlProductTypeVanlineMap_XMLInterface_ExternalProductTypeCode: XmlInterfaceFID\ExternalProductTypeCodeIndexes IX_XmlProductTypeVanlineMap_XMLInterface_ProductType: XmlInterfaceFID\ProductTypeFIDXmlInterfaceFIDint4
No
Indexes IX_XmlProductTypeVanlineMap_XMLInterface_ExternalProductTypeCode: XmlInterfaceFID\ExternalProductTypeCodeExternalProductTypeCodevarchar(16)16
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_XmlProductTypeVanlineMap: XmlProductTypeVanlineMapIDPK_XmlProductTypeVanlineMapXmlProductTypeVanlineMapID
Yes
80
IX_XmlProductTypeVanlineMap_XMLInterface_ExternalProductTypeCodeXmlInterfaceFID, ExternalProductTypeCode
Yes
80
IX_XmlProductTypeVanlineMap_XMLInterface_ProductTypeXmlInterfaceFID, ProductTypeFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlProductTypeVanlineMap_ProductTypeCascadeProductTypeFID->[dbo].[ProductType].[ProductTypeID]
FK_XmlProductTypeVanlineMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
Extended Properties
NameLevel 2 TypeLevel 2 NameValue
DescriptionMaps an external interface to a product type.
DescriptionCOLUMNExternalProductTypeCodeCode used by an external interface to represent a product type.
DescriptionCOLUMNXmlInterfaceFIDForeign key to an external interface.
SQL Script
CREATE TABLE [dbo].[XmlProductTypeVanlineMap]
(
[XmlProductTypeVanlineMapID] [int] NOT NULL IDENTITY(1, 1),
[ProductTypeFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalProductTypeCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlProductTypeVanlineMap] ADD CONSTRAINT [PK_XmlProductTypeVanlineMap] PRIMARY KEY NONCLUSTERED  ([XmlProductTypeVanlineMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlProductTypeVanlineMap] ADD CONSTRAINT [IX_XmlProductTypeVanlineMap_XMLInterface_ExternalProductTypeCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalProductTypeCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlProductTypeVanlineMap] ADD CONSTRAINT [IX_XmlProductTypeVanlineMap_XMLInterface_ProductType] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ProductTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlProductTypeVanlineMap] ADD CONSTRAINT [FK_XmlProductTypeVanlineMap_ProductType] FOREIGN KEY ([ProductTypeFID]) REFERENCES [dbo].[ProductType] ([ProductTypeID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlProductTypeVanlineMap] ADD CONSTRAINT [FK_XmlProductTypeVanlineMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlProductTypeVanlineMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlProductTypeVanlineMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlProductTypeVanlineMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlProductTypeVanlineMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Maps an external interface to a product type.', 'SCHEMA', N'dbo', 'TABLE', N'XmlProductTypeVanlineMap', NULL, NULL
GO
EXEC sp_addextendedproperty N'Description', N'Code used by an external interface to represent a product type.', 'SCHEMA', N'dbo', 'TABLE', N'XmlProductTypeVanlineMap', 'COLUMN', N'ExternalProductTypeCode'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to an external interface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlProductTypeVanlineMap', 'COLUMN', N'XmlInterfaceFID'
GO
Uses