Tables [dbo].[UnitType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)2
Created9:14:38 AM Friday, December 7, 2018
Last Modified9:16:19 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_UnitType: UnitTypeIDUnitTypeIDint4
No
1 - 1
Indexes IX_UnitType_Description: DescriptionDescriptionvarchar(32)32
No
SystemTypebit1
No
((0))
MinimumUnitsint4
No
((1))
HourLevelAddUnitdecimal(12,2)9
No
((8.00))
LocalServiceUnitLabelvarchar(32)32
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_UnitType: UnitTypeIDPK_UnitTypeUnitTypeID
Yes
IX_UnitType_DescriptionDescription
Yes
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[UnitType]
(
[UnitTypeID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SystemType] [bit] NOT NULL CONSTRAINT [DF_UnitType_SystemType] DEFAULT ((0)),
[MinimumUnits] [int] NOT NULL CONSTRAINT [DF_UnitType_MinUnits] DEFAULT ((1)),
[HourLevelAddUnit] [decimal] (12, 2) NOT NULL CONSTRAINT [DF_UnitType_HourLevelAddUnit] DEFAULT ((8.00)),
[LocalServiceUnitLabel] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UnitType] ADD CONSTRAINT [PK_UnitType] PRIMARY KEY NONCLUSTERED  ([UnitTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UnitType] ADD CONSTRAINT [IX_UnitType_Description] UNIQUE NONCLUSTERED  ([Description]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[UnitType] TO [MssExec]
GRANT INSERT ON  [dbo].[UnitType] TO [MssExec]
GRANT DELETE ON  [dbo].[UnitType] TO [MssExec]
GRANT UPDATE ON  [dbo].[UnitType] TO [MssExec]
GO
Uses
Used By