Tables [dbo].[RevenueRatingImportedHeader]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)2596
Created4:57:10 PM Thursday, September 7, 2006
Last Modified7:36:09 PM Tuesday, June 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_REVENUERATINGIMPORTEDHEADER: RevenueRatingImportedHeaderIDRevenueRatingImportedHeaderIDint4
No
1 - 1
BookingAgentPercentagedecimal(12,4)9
Yes
DestinationAgentPercentagedecimal(12,4)9
Yes
DiscountLineHauldecimal(12,4)9
Yes
DiscountPercentagedecimal(12,4)9
Yes
HaulingAgentPercentagedecimal(12,4)9
Yes
LineHauldecimal(12,4)9
Yes
Indexes IX_RevenueRatingImportedHeader_OrderSeg: OrderSegOrderSegvarchar(16)16
Yes
PSegvarchar(1)1
Yes
OSegvarchar(1)1
Yes
SSegvarchar(1)1
Yes
OriginAgentPercentagedecimal(12,4)9
Yes
Foreign Keys FK_REVENUERATINGIMPORTEDHEADER_REVENUEIMPORTTYPE: [dbo].[RevenueImportType].RevenueImportTypeFIDIndexes IX_RevenueRatingImportedHeader_Type_Order: OrdersFID\RevenueImportTypeFIDRevenueImportTypeFIDint4
No
BookingBillingMinorFIDint4
Yes
OriginBillingMinorFIDint4
Yes
DestinationBillingMinorFIDint4
Yes
HaulingBillingMinorFIDint4
Yes
Foreign Keys FK_RevenueRatingImportedHeader_Orders: [dbo].[Orders].OrdersFIDIndexes IX_RevenueRatingImportedHeader_Type_Order: OrdersFID\RevenueImportTypeFIDOrdersFIDint4
Yes
DownloadDateTimedatetime8
Yes
ImportDateTimedatetime8
Yes
BookingImportDateTimedatetime8
Yes
OriginImportDateTimedatetime8
Yes
DestinationImportDateTimedatetime8
Yes
HaulingImportDateTimedatetime8
Yes
Foreign Keys FK_REVENUERATINGIMPORTEDHEADER_XMLINTERFACEFID: [dbo].[XmlInterface].XMLInterfaceFIDXMLInterfaceFIDint4
No
XmlExternalInterfaceVanlineCodevarchar(32)32
Yes
GrossTransportationAmountdecimal(12,4)9
Yes
TotalWeightint4
Yes
Indexes IX_RevenueRatingImportedHeader_CarrierBookingBillingMinor: CarrierBookingBillingMinorFIDCarrierBookingBillingMinorFIDint4
Yes
Indexes IX_RevenueRatingImportedHeader_CarrierOriginBillingMinor: CarrierOriginBillingMinorFIDCarrierOriginBillingMinorFIDint4
Yes
Indexes IX_RevenueRatingImportedHeader_CarrierDestinationBillingMinor: CarrierDestinationBillingMinorFIDCarrierDestinationBillingMinorFIDint4
Yes
Indexes IX_RevenueRatingImportedHeader_CarrierHaulingBillingMinor: CarrierHaulingBillingMinorFIDCarrierHaulingBillingMinorFIDint4
Yes
IsOwnAuthorityFlagbit1
Yes
((0))
Foreign Keys FK_RevenueRatingImportedHeader_ItemCode1: [dbo].[ItemCode].HaulingItemCodeFIDHaulingItemCodeFIDint4
Yes
Foreign Keys FK_RevenueRatingImportedHeader_ItemCode2: [dbo].[ItemCode].BookingItemCodeFIDBookingItemCodeFIDint4
Yes
Foreign Keys FK_RevenueRatingImportedHeader_ItemCode3: [dbo].[ItemCode].OriginItemCodeFIDOriginItemCodeFIDint4
Yes
Foreign Keys FK_RevenueRatingImportedHeader_ItemCode4: [dbo].[ItemCode].DestinationItemCodeFIDDestinationItemCodeFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_REVENUERATINGIMPORTEDHEADER: RevenueRatingImportedHeaderIDPK_REVENUERATINGIMPORTEDHEADERRevenueRatingImportedHeaderID
Yes
80
IX_RevenueRatingImportedHeader_CarrierBookingBillingMinorCarrierBookingBillingMinorFID
IX_RevenueRatingImportedHeader_CarrierDestinationBillingMinorCarrierDestinationBillingMinorFID
IX_RevenueRatingImportedHeader_CarrierHaulingBillingMinorCarrierHaulingBillingMinorFID
IX_RevenueRatingImportedHeader_CarrierOriginBillingMinorCarrierOriginBillingMinorFID
IX_RevenueRatingImportedHeader_OrderSegOrderSeg80
IX_RevenueRatingImportedHeader_Type_OrderOrdersFID, RevenueImportTypeFID
Foreign Keys Foreign Keys
NameColumns
FK_RevenueRatingImportedHeader_ItemCode2BookingItemCodeFID->[dbo].[ItemCode].[ICPriKey]
FK_RevenueRatingImportedHeader_ItemCode4DestinationItemCodeFID->[dbo].[ItemCode].[ICPriKey]
FK_RevenueRatingImportedHeader_ItemCode1HaulingItemCodeFID->[dbo].[ItemCode].[ICPriKey]
FK_RevenueRatingImportedHeader_OrdersOrdersFID->[dbo].[Orders].[PriKey]
FK_RevenueRatingImportedHeader_ItemCode3OriginItemCodeFID->[dbo].[ItemCode].[ICPriKey]
FK_REVENUERATINGIMPORTEDHEADER_REVENUEIMPORTTYPERevenueImportTypeFID->[dbo].[RevenueImportType].[PriKey]
FK_REVENUERATINGIMPORTEDHEADER_XMLINTERFACEFIDXMLInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RevenueRatingImportedHeader]
(
[RevenueRatingImportedHeaderID] [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,
[HaulingAgentPercentage] [decimal] (12, 4) NULL,
[LineHaul] [decimal] (12, 4) NULL,
[OrderSeg] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PSeg] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OSeg] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SSeg] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OriginAgentPercentage] [decimal] (12, 4) NULL,
[RevenueImportTypeFID] [int] NOT NULL,
[BookingBillingMinorFID] [int] NULL,
[OriginBillingMinorFID] [int] NULL,
[DestinationBillingMinorFID] [int] NULL,
[HaulingBillingMinorFID] [int] NULL,
[OrdersFID] [int] NULL,
[DownloadDateTime] [datetime] NULL,
[ImportDateTime] [datetime] NULL,
[BookingImportDateTime] [datetime] NULL,
[OriginImportDateTime] [datetime] NULL,
[DestinationImportDateTime] [datetime] NULL,
[HaulingImportDateTime] [datetime] NULL,
[XMLInterfaceFID] [int] NOT NULL,
[XmlExternalInterfaceVanlineCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[GrossTransportationAmount] [decimal] (12, 4) NULL,
[TotalWeight] [int] NULL,
[CarrierBookingBillingMinorFID] [int] NULL,
[CarrierOriginBillingMinorFID] [int] NULL,
[CarrierDestinationBillingMinorFID] [int] NULL,
[CarrierHaulingBillingMinorFID] [int] NULL,
[IsOwnAuthorityFlag] [bit] NULL CONSTRAINT [DF_RevenueRatingImportedHeader_IsOwnAuthorityFlag] DEFAULT ((0)),
[HaulingItemCodeFID] [int] NULL,
[BookingItemCodeFID] [int] NULL,
[OriginItemCodeFID] [int] NULL,
[DestinationItemCodeFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeader] ADD CONSTRAINT [PK_REVENUERATINGIMPORTEDHEADER] PRIMARY KEY NONCLUSTERED  ([RevenueRatingImportedHeaderID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportedHeader_CarrierBookingBillingMinor] ON [dbo].[RevenueRatingImportedHeader] ([CarrierBookingBillingMinorFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportedHeader_CarrierDestinationBillingMinor] ON [dbo].[RevenueRatingImportedHeader] ([CarrierDestinationBillingMinorFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportedHeader_CarrierHaulingBillingMinor] ON [dbo].[RevenueRatingImportedHeader] ([CarrierHaulingBillingMinorFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportedHeader_CarrierOriginBillingMinor] ON [dbo].[RevenueRatingImportedHeader] ([CarrierOriginBillingMinorFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportedHeader_OrderSeg] ON [dbo].[RevenueRatingImportedHeader] ([OrderSeg]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportedHeader_Type_Order] ON [dbo].[RevenueRatingImportedHeader] ([OrdersFID], [RevenueImportTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeader] ADD CONSTRAINT [FK_RevenueRatingImportedHeader_ItemCode2] FOREIGN KEY ([BookingItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeader] ADD CONSTRAINT [FK_RevenueRatingImportedHeader_ItemCode4] FOREIGN KEY ([DestinationItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeader] ADD CONSTRAINT [FK_RevenueRatingImportedHeader_ItemCode1] FOREIGN KEY ([HaulingItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeader] ADD CONSTRAINT [FK_RevenueRatingImportedHeader_Orders] FOREIGN KEY ([OrdersFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeader] ADD CONSTRAINT [FK_RevenueRatingImportedHeader_ItemCode3] FOREIGN KEY ([OriginItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeader] ADD CONSTRAINT [FK_REVENUERATINGIMPORTEDHEADER_REVENUEIMPORTTYPE] FOREIGN KEY ([RevenueImportTypeFID]) REFERENCES [dbo].[RevenueImportType] ([PriKey])
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeader] ADD CONSTRAINT [FK_REVENUERATINGIMPORTEDHEADER_XMLINTERFACEFID] FOREIGN KEY ([XMLInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[RevenueRatingImportedHeader] TO [MssExec]
GRANT INSERT ON  [dbo].[RevenueRatingImportedHeader] TO [MssExec]
GRANT DELETE ON  [dbo].[RevenueRatingImportedHeader] TO [MssExec]
GRANT UPDATE ON  [dbo].[RevenueRatingImportedHeader] TO [MssExec]
GO
Uses
Used By