Tables [dbo].[XmlProductCodeVanlineMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)22
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_XmlProductCodeVanlineMap: XmlProductCodeVanlineMapIDXmlProductCodeVanlineMapIDint4
No
1 - 1
Foreign Keys FK_XmlProductCodeVanlineMap_ProductCode: [dbo].[ProductCode].ProductCodeFIDIndexes IX_XmlProductCodeVanlineMap_XMLInterface_ProductCode: XmlInterfaceFID\ProductCodeFIDProductCodeFIDint4
No
Foreign Keys FK_XmlProductCodeVanlineMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlProductCodeVanlineMap_XMLInterface_ExternalProductCodeCode: XmlInterfaceFID\ExternalProductCodeCodeIndexes IX_XmlProductCodeVanlineMap_XMLInterface_ProductCode: XmlInterfaceFID\ProductCodeFIDXmlInterfaceFIDint4
No
Indexes IX_XmlProductCodeVanlineMap_XMLInterface_ExternalProductCodeCode: XmlInterfaceFID\ExternalProductCodeCodeExternalProductCodeCodevarchar(16)16
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_XmlProductCodeVanlineMap: XmlProductCodeVanlineMapIDPK_XmlProductCodeVanlineMapXmlProductCodeVanlineMapID
Yes
80
IX_XmlProductCodeVanlineMap_XMLInterface_ExternalProductCodeCodeXmlInterfaceFID, ExternalProductCodeCode
Yes
80
IX_XmlProductCodeVanlineMap_XMLInterface_ProductCodeXmlInterfaceFID, ProductCodeFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlProductCodeVanlineMap_ProductCodeCascadeProductCodeFID->[dbo].[ProductCode].[ProductCodeID]
FK_XmlProductCodeVanlineMap_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 Code.
DescriptionCOLUMNExternalProductCodeCodeCode used by an external interface to represent a product Code.
DescriptionCOLUMNXmlInterfaceFIDForeign key to an external interface.
SQL Script
CREATE TABLE [dbo].[XmlProductCodeVanlineMap]
(
[XmlProductCodeVanlineMapID] [int] NOT NULL IDENTITY(1, 1),
[ProductCodeFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalProductCodeCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlProductCodeVanlineMap] ADD CONSTRAINT [PK_XmlProductCodeVanlineMap] PRIMARY KEY NONCLUSTERED  ([XmlProductCodeVanlineMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlProductCodeVanlineMap] ADD CONSTRAINT [IX_XmlProductCodeVanlineMap_XMLInterface_ExternalProductCodeCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalProductCodeCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlProductCodeVanlineMap] ADD CONSTRAINT [IX_XmlProductCodeVanlineMap_XMLInterface_ProductCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ProductCodeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlProductCodeVanlineMap] ADD CONSTRAINT [FK_XmlProductCodeVanlineMap_ProductCode] FOREIGN KEY ([ProductCodeFID]) REFERENCES [dbo].[ProductCode] ([ProductCodeID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlProductCodeVanlineMap] ADD CONSTRAINT [FK_XmlProductCodeVanlineMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlProductCodeVanlineMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlProductCodeVanlineMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlProductCodeVanlineMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlProductCodeVanlineMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Maps an external interface to a product Code.', 'SCHEMA', N'dbo', 'TABLE', N'XmlProductCodeVanlineMap', NULL, NULL
GO
EXEC sp_addextendedproperty N'Description', N'Code used by an external interface to represent a product Code.', 'SCHEMA', N'dbo', 'TABLE', N'XmlProductCodeVanlineMap', 'COLUMN', N'ExternalProductCodeCode'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to an external interface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlProductCodeVanlineMap', 'COLUMN', N'XmlInterfaceFID'
GO
Uses