Tables [dbo].[XmlValuationVanLineCodeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created5:34:48 PM Monday, May 4, 2009
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDescription
Cluster Primary Key PK_XmlValuationVanLineCodeMap: XmlValuationVanLineCodeMapIDXmlValuationVanLineCodeMapIDint4
No
1 - 1The primary key.
Foreign Keys FK_XmlValuationVanLineCodeMap_Valuation: [dbo].[Valuation].ValuationFIDIndexes IX_UniqueValuation_Valuation_Interface: ValuationFID\XmlInterfaceFIDValuationFIDint4
No
Foreign key to a valuation.
Foreign Keys FK_XmlValuationVanLineCodeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_UniqueValuation_Valuation_Interface: ValuationFID\XmlInterfaceFIDIndexes IX_UniqueValuation_Interface_VanLineCode: XmlInterfaceFID\VanLineCodeXmlInterfaceFIDint4
No
Indexes IX_UniqueValuation_Interface_VanLineCode: XmlInterfaceFID\VanLineCodeVanLineCodevarchar(16)16
No
The van line code for the Valuation and XMLInterface.
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_XmlValuationVanLineCodeMap: XmlValuationVanLineCodeMapIDPK_XmlValuationVanLineCodeMapXmlValuationVanLineCodeMapID
Yes
80
IX_UniqueValuation_Interface_VanLineCodeXmlInterfaceFID, VanLineCode
Yes
80
IX_UniqueValuation_Valuation_InterfaceValuationFID, XmlInterfaceFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlValuationVanLineCodeMap_ValuationCascadeValuationFID->[dbo].[Valuation].[ValuationID]
FK_XmlValuationVanLineCodeMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlValuationVanLineCodeMap]
(
[XmlValuationVanLineCodeMapID] [int] NOT NULL IDENTITY(1, 1),
[ValuationFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[VanLineCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlValuationVanLineCodeMap] ADD CONSTRAINT [PK_XmlValuationVanLineCodeMap] PRIMARY KEY CLUSTERED  ([XmlValuationVanLineCodeMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlValuationVanLineCodeMap] ADD CONSTRAINT [IX_UniqueValuation_Valuation_Interface] UNIQUE NONCLUSTERED  ([ValuationFID], [XmlInterfaceFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlValuationVanLineCodeMap] ADD CONSTRAINT [IX_UniqueValuation_Interface_VanLineCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [VanLineCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlValuationVanLineCodeMap] ADD CONSTRAINT [FK_XmlValuationVanLineCodeMap_Valuation] FOREIGN KEY ([ValuationFID]) REFERENCES [dbo].[Valuation] ([ValuationID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlValuationVanLineCodeMap] ADD CONSTRAINT [FK_XmlValuationVanLineCodeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlValuationVanLineCodeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlValuationVanLineCodeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlValuationVanLineCodeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlValuationVanLineCodeMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key to a valuation.', 'SCHEMA', N'dbo', 'TABLE', N'XmlValuationVanLineCodeMap', 'COLUMN', N'ValuationFID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The van line code for the Valuation and XMLInterface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlValuationVanLineCodeMap', 'COLUMN', N'VanLineCode'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'XmlValuationVanLineCodeMap', 'COLUMN', N'XmlValuationVanLineCodeMapID'
GO
Uses
Used By