Tables [dbo].[XmlAutoMakeVanlineMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)44
Created5:34:42 PM Monday, May 4, 2009
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlAutoMakeVanlineMap: XmlAutoMakeVanlineMapIDXmlAutoMakeVanlineMapIDint4
No
1 - 1
Foreign Keys FK_XmlAutoMakeVanlineMap_AutoMake: [dbo].[AutoMake].AutoMakeFIDIndexes IX_XmlAutoMakeVanlineMap_XMLInterface_AutoMake: XmlInterfaceFID\AutoMakeFIDAutoMakeFIDint4
No
Foreign Keys FK_XmlAutoMakeVanlineMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlAutoMakeVanlineMap_XMLInterface_AutoMake: XmlInterfaceFID\AutoMakeFIDIndexes IX_XmlAutoMakeVanlineMap_XMLInterface_VanlineAutoMakeCode: XmlInterfaceFID\VanlineAutoMakeCodeXmlInterfaceFIDint4
No
Indexes IX_XmlAutoMakeVanlineMap_XMLInterface_VanlineAutoMakeCode: XmlInterfaceFID\VanlineAutoMakeCodeVanlineAutoMakeCodevarchar(64)64
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_XmlAutoMakeVanlineMap: XmlAutoMakeVanlineMapIDPK_XmlAutoMakeVanlineMapXmlAutoMakeVanlineMapID
Yes
80
IX_XmlAutoMakeVanlineMap_XMLInterface_AutoMakeXmlInterfaceFID, AutoMakeFID
Yes
80
IX_XmlAutoMakeVanlineMap_XMLInterface_VanlineAutoMakeCodeXmlInterfaceFID, VanlineAutoMakeCode
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlAutoMakeVanlineMap_AutoMakeCascadeAutoMakeFID->[dbo].[AutoMake].[AutoMakeID]
FK_XmlAutoMakeVanlineMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
Extended Properties
NameLevel 2 TypeLevel 2 NameValue
DescriptionHolds a code for a particular van line and interface
DescriptionCOLUMNVanlineAutoMakeCodeCode used to map a vanline between an interface and a auto make.
DescriptionCOLUMNXmlInterfaceFIDForeign key to an external interface.
SQL Script
CREATE TABLE [dbo].[XmlAutoMakeVanlineMap]
(
[XmlAutoMakeVanlineMapID] [int] NOT NULL IDENTITY(1, 1),
[AutoMakeFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[VanlineAutoMakeCode] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlAutoMakeVanlineMap] ADD CONSTRAINT [PK_XmlAutoMakeVanlineMap] PRIMARY KEY NONCLUSTERED  ([XmlAutoMakeVanlineMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlAutoMakeVanlineMap] ADD CONSTRAINT [IX_XmlAutoMakeVanlineMap_XMLInterface_AutoMake] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [AutoMakeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlAutoMakeVanlineMap] ADD CONSTRAINT [IX_XmlAutoMakeVanlineMap_XMLInterface_VanlineAutoMakeCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [VanlineAutoMakeCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlAutoMakeVanlineMap] ADD CONSTRAINT [FK_XmlAutoMakeVanlineMap_AutoMake] FOREIGN KEY ([AutoMakeFID]) REFERENCES [dbo].[AutoMake] ([AutoMakeID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlAutoMakeVanlineMap] ADD CONSTRAINT [FK_XmlAutoMakeVanlineMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlAutoMakeVanlineMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlAutoMakeVanlineMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlAutoMakeVanlineMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlAutoMakeVanlineMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Holds a code for a particular van line and interface', 'SCHEMA', N'dbo', 'TABLE', N'XmlAutoMakeVanlineMap', NULL, NULL
GO
EXEC sp_addextendedproperty N'Description', N'Code used to map a vanline between an interface and a auto make.', 'SCHEMA', N'dbo', 'TABLE', N'XmlAutoMakeVanlineMap', 'COLUMN', N'VanlineAutoMakeCode'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to an external interface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlAutoMakeVanlineMap', 'COLUMN', N'XmlInterfaceFID'
GO
Uses