Tables [dbo].[RevenueRatingImportHeader]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)2205
Created4:57:10 PM Thursday, September 7, 2006
Last Modified9:19:48 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_RevenueRatingImportHeader: RevenueRatingImportHeaderIDRevenueRatingImportHeaderIDint4
No
1 - 1
BookingAgentPercentagedecimal(12,4)9
Yes
DestinationAgentPercentagedecimal(12,4)9
Yes
DiscountLineHauldecimal(12,4)9
Yes
DiscountPercentagedecimal(12,4)9
Yes
DownloadDateTimedatetime8
No
HaulingAgentPercentagedecimal(12,4)9
Yes
LineHauldecimal(12,4)9
Yes
Indexes IX_RevenueRatingImportHeader_OrderSeg: OrderSegIndexes IX_RevenueRatingImportHeader_OrderSegments: RevenueImportTypeFID\XMLInterfaceFID\XmlExternalInterfaceVanlineCode\OrderSeg\PSeg\OSeg\SSegOrderSegvarchar(16)16
No
Indexes IX_RevenueRatingImportHeader_OrderSegments: RevenueImportTypeFID\XMLInterfaceFID\XmlExternalInterfaceVanlineCode\OrderSeg\PSeg\OSeg\SSegPSegvarchar(1)1
No
Indexes IX_RevenueRatingImportHeader_OrderSegments: RevenueImportTypeFID\XMLInterfaceFID\XmlExternalInterfaceVanlineCode\OrderSeg\PSeg\OSeg\SSegOSegvarchar(1)1
No
Indexes IX_RevenueRatingImportHeader_OrderSegments: RevenueImportTypeFID\XMLInterfaceFID\XmlExternalInterfaceVanlineCode\OrderSeg\PSeg\OSeg\SSegSSegvarchar(1)1
No
OriginAgentPercentagedecimal(12,4)9
Yes
Foreign Keys FK_REVENUERATINGIMPORTHEADER_REVENUEIMPORTTYPE: [dbo].[RevenueImportType].RevenueImportTypeFIDIndexes IX_RevenueRatingImportHeader_OrderSegments: RevenueImportTypeFID\XMLInterfaceFID\XmlExternalInterfaceVanlineCode\OrderSeg\PSeg\OSeg\SSegRevenueImportTypeFIDint4
No
Foreign Keys FK_REVENUERATINGIMPORTHEADER_XMLINTERFACEFID: [dbo].[XmlInterface].XMLInterfaceFIDIndexes IX_RevenueRatingImportHeader_OrderSegments: RevenueImportTypeFID\XMLInterfaceFID\XmlExternalInterfaceVanlineCode\OrderSeg\PSeg\OSeg\SSegXMLInterfaceFIDint4
No
Indexes IX_RevenueRatingImportHeader_OrderSegments: RevenueImportTypeFID\XMLInterfaceFID\XmlExternalInterfaceVanlineCode\OrderSeg\PSeg\OSeg\SSegXmlExternalInterfaceVanlineCodevarchar(32)32
Yes
GrossTransportationAmountdecimal(12,4)9
Yes
TotalWeightint4
Yes
IsOwnAuthorityFlagbit1
Yes
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_RevenueRatingImportHeader: RevenueRatingImportHeaderIDPK_RevenueRatingImportHeaderRevenueRatingImportHeaderID
Yes
80
IX_RevenueRatingImportHeader_OrderSegmentsRevenueImportTypeFID, XMLInterfaceFID, XmlExternalInterfaceVanlineCode, OrderSeg, PSeg, OSeg, SSeg
Yes
80
IX_RevenueRatingImportHeader_OrderSegOrderSeg80
Foreign Keys Foreign Keys
NameColumns
FK_REVENUERATINGIMPORTHEADER_REVENUEIMPORTTYPERevenueImportTypeFID->[dbo].[RevenueImportType].[PriKey]
FK_REVENUERATINGIMPORTHEADER_XMLINTERFACEFIDXMLInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RevenueRatingImportHeader]
(
[RevenueRatingImportHeaderID] [int] NOT NULL IDENTITY(1, 1),
[BookingAgentPercentage] [decimal] (12, 4) NULL,
[DestinationAgentPercentage] [decimal] (12, 4) NULL,
[DiscountLineHaul] [decimal] (12, 4) NULL,
[DiscountPercentage] [decimal] (12, 4) NULL,
[DownloadDateTime] [datetime] NOT NULL,
[HaulingAgentPercentage] [decimal] (12, 4) NULL,
[LineHaul] [decimal] (12, 4) NULL,
[OrderSeg] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PSeg] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[OSeg] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SSeg] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[OriginAgentPercentage] [decimal] (12, 4) NULL,
[RevenueImportTypeFID] [int] NOT NULL,
[XMLInterfaceFID] [int] NOT NULL,
[XmlExternalInterfaceVanlineCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[GrossTransportationAmount] [decimal] (12, 4) NULL,
[TotalWeight] [int] NULL,
[IsOwnAuthorityFlag] [bit] NULL CONSTRAINT [DF_RevenueRatingImportHeader_IsOwnAuthorityFlag] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportHeader] ADD CONSTRAINT [PK_RevenueRatingImportHeader] PRIMARY KEY NONCLUSTERED  ([RevenueRatingImportHeaderID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportHeader_OrderSeg] ON [dbo].[RevenueRatingImportHeader] ([OrderSeg]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_RevenueRatingImportHeader_OrderSegments] ON [dbo].[RevenueRatingImportHeader] ([RevenueImportTypeFID], [XMLInterfaceFID], [XmlExternalInterfaceVanlineCode], [OrderSeg], [PSeg], [OSeg], [SSeg]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportHeader] ADD CONSTRAINT [FK_REVENUERATINGIMPORTHEADER_REVENUEIMPORTTYPE] FOREIGN KEY ([RevenueImportTypeFID]) REFERENCES [dbo].[RevenueImportType] ([PriKey])
GO
ALTER TABLE [dbo].[RevenueRatingImportHeader] ADD CONSTRAINT [FK_REVENUERATINGIMPORTHEADER_XMLINTERFACEFID] FOREIGN KEY ([XMLInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[RevenueRatingImportHeader] TO [MssExec]
GRANT INSERT ON  [dbo].[RevenueRatingImportHeader] TO [MssExec]
GRANT DELETE ON  [dbo].[RevenueRatingImportHeader] TO [MssExec]
GRANT UPDATE ON  [dbo].[RevenueRatingImportHeader] TO [MssExec]
GO
Uses
Used By