Tables [dbo].[RevenueRatingImportSplitHaul]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)17
Created5:01:53 PM Tuesday, November 4, 2008
Last Modified10:30:29 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_RevenueRatingImportSplitHaul: RevenueRatingImportSplitHaulIDRevenueRatingImportSplitHaulIDint4
No
1 - 1
Foreign Keys FK_RevenueRatingImportSplitHaul_RevenueRatingImportHeader: [dbo].[RevenueRatingImportHeader].RevenueRatingImportHeaderFIDIndexes IX_RevenueRatingImportSplitHaul_RevenueRatingImportHeaderFID: RevenueRatingImportHeaderFIDRevenueRatingImportHeaderFIDint4
No
AgentIDvarchar(10)10
No
DriverNumbervarchar(15)15
No
Milesint4
Yes
Weightint4
Yes
Percentagedecimal(12,4)9
Yes
PSegvarchar(1)1
Yes
OSegvarchar(1)1
Yes
SSegvarchar(1)1
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_RevenueRatingImportSplitHaul: RevenueRatingImportSplitHaulIDPK_RevenueRatingImportSplitHaulRevenueRatingImportSplitHaulID
Yes
80
IX_RevenueRatingImportSplitHaul_RevenueRatingImportHeaderFIDRevenueRatingImportHeaderFID80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_RevenueRatingImportSplitHaul_RevenueRatingImportHeaderCascadeRevenueRatingImportHeaderFID->[dbo].[RevenueRatingImportHeader].[RevenueRatingImportHeaderID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RevenueRatingImportSplitHaul]
(
[RevenueRatingImportSplitHaulID] [int] NOT NULL IDENTITY(1, 1),
[RevenueRatingImportHeaderFID] [int] NOT NULL,
[AgentID] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DriverNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Miles] [int] NULL,
[Weight] [int] NULL,
[Percentage] [decimal] (12, 4) 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
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportSplitHaul] ADD CONSTRAINT [PK_RevenueRatingImportSplitHaul] PRIMARY KEY CLUSTERED  ([RevenueRatingImportSplitHaulID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportSplitHaul_RevenueRatingImportHeaderFID] ON [dbo].[RevenueRatingImportSplitHaul] ([RevenueRatingImportHeaderFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportSplitHaul] ADD CONSTRAINT [FK_RevenueRatingImportSplitHaul_RevenueRatingImportHeader] FOREIGN KEY ([RevenueRatingImportHeaderFID]) REFERENCES [dbo].[RevenueRatingImportHeader] ([RevenueRatingImportHeaderID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[RevenueRatingImportSplitHaul] TO [MssExec]
GRANT INSERT ON  [dbo].[RevenueRatingImportSplitHaul] TO [MssExec]
GRANT DELETE ON  [dbo].[RevenueRatingImportSplitHaul] TO [MssExec]
GRANT UPDATE ON  [dbo].[RevenueRatingImportSplitHaul] TO [MssExec]
GO
Uses