Tables [dbo].[RateTypes]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)9
Created4:57:09 PM Thursday, September 7, 2006
Last Modified8:24:32 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_RateTypes: RTypePriKeyRTypePriKeyint4
No
1 - 1
RTDescriptionvarchar(30)30
No
QuantityOneDescriptionvarchar(32)32
Yes
QuantityTwoDescriptionvarchar(32)32
Yes
Check Constraints CK_RateTypes_Divisor : ([Divisor]>(0))Divisordecimal(12,2)9
No
((1.0))
QuantityOneInvoiceLabelvarchar(8)8
Yes
QuantityTwoInvoiceLabelvarchar(8)8
Yes
ApplyLaborRatingTypebit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_RateTypes: RTypePriKeyPK_RateTypesRTypePriKey
Yes
80
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_RateTypes_DivisorDivisor([Divisor]>(0))
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RateTypes]
(
[RTypePriKey] [int] NOT NULL IDENTITY(1, 1),
[RTDescription] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[QuantityOneDescription] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[QuantityTwoDescription] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Divisor] [decimal] (12, 2) NOT NULL CONSTRAINT [DF_RateTypes_Divisor] DEFAULT ((1.0)),
[QuantityOneInvoiceLabel] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[QuantityTwoInvoiceLabel] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ApplyLaborRatingType] [bit] NOT NULL CONSTRAINT [DF_RateTypes_ApplyLaborRatingType] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RateTypes] ADD CONSTRAINT [CK_RateTypes_Divisor] CHECK (([Divisor]>(0)))
GO
ALTER TABLE [dbo].[RateTypes] ADD CONSTRAINT [PK_RateTypes] PRIMARY KEY CLUSTERED  ([RTypePriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[RateTypes] TO [MssExec]
GRANT INSERT ON  [dbo].[RateTypes] TO [MssExec]
GRANT DELETE ON  [dbo].[RateTypes] TO [MssExec]
GRANT UPDATE ON  [dbo].[RateTypes] TO [MssExec]
GO
Uses
Used By