Tables [dbo].[ICCommissions]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)26450
Created4:57:07 PM Thursday, September 7, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_ICCommissions: ICCommPriKeyICCommPriKeyint4
No
1 - 1
Foreign Keys FK_ICCommissions_LaborType: [dbo].[LaborType].LaborTypeIndexes IX_ICCommissions_ICDetail_LaborType: ICDPriKey\LaborTypeLaborTypeint4
Yes
CommGLAccountvarchar(16)16
Yes
CommGLSubAccountvarchar(16)16
Yes
Foreign Keys FK_ICCommissions_ICDetail: [dbo].[ICDetail].ICDPriKeyIndexes IX_ICCommissions_ICDetail_LaborType: ICDPriKey\LaborTypeICDPriKeyint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_ICCommissions: ICCommPriKeyPK_ICCommissionsICCommPriKey
Yes
80
IX_ICCommissions_ICDetail_LaborTypeICDPriKey, LaborType
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_ICCommissions_ICDetailICDPriKey->[dbo].[ICDetail].[ICDPriKey]
FK_ICCommissions_LaborTypeLaborType->[dbo].[LaborType].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ICCommissions]
(
[ICCommPriKey] [int] NOT NULL IDENTITY(1, 1),
[LaborType] [int] NULL,
[CommGLAccount] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CommGLSubAccount] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ICDPriKey] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICCommissions] ADD CONSTRAINT [PK_ICCommissions] PRIMARY KEY CLUSTERED  ([ICCommPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICCommissions] ADD CONSTRAINT [IX_ICCommissions_ICDetail_LaborType] UNIQUE NONCLUSTERED  ([ICDPriKey], [LaborType]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ICCommissions] ADD CONSTRAINT [FK_ICCommissions_ICDetail] FOREIGN KEY ([ICDPriKey]) REFERENCES [dbo].[ICDetail] ([ICDPriKey])
GO
ALTER TABLE [dbo].[ICCommissions] ADD CONSTRAINT [FK_ICCommissions_LaborType] FOREIGN KEY ([LaborType]) REFERENCES [dbo].[LaborType] ([PriKey])
GO
GRANT SELECT ON  [dbo].[ICCommissions] TO [MssExec]
GRANT INSERT ON  [dbo].[ICCommissions] TO [MssExec]
GRANT DELETE ON  [dbo].[ICCommissions] TO [MssExec]
GRANT UPDATE ON  [dbo].[ICCommissions] TO [MssExec]
GO
Uses