Tables [dbo].[AdvanceFromCommission]
Properties
PropertyValue
Row Count (~)0
Created7:28:15 PM Tuesday, June 11, 2024
Last Modified7:28:15 PM Tuesday, June 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_AdvanceFromCommission: AdvanceFromCommissionIDAdvanceFromCommissionIDint4
No
1 - 1
Foreign Keys FK_AdvanceFromCommission_Advance: [dbo].[Advance].AdvanceFIDAdvanceFIDint4
Yes
Foreign Keys FK_AdvanceFromCommission_CommStmtVendor: [dbo].[CommStmtVendor].CommStmtVendorFIDCommStmtVendorFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AdvanceFromCommission: AdvanceFromCommissionIDPK_AdvanceFromCommissionAdvanceFromCommissionID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_AdvanceFromCommission_AdvanceAdvanceFID->[dbo].[Advance].[PriKey]
FK_AdvanceFromCommission_CommStmtVendorCommStmtVendorFID->[dbo].[CommStmtVendor].[MSID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AdvanceFromCommission]
(
[AdvanceFromCommissionID] [int] NOT NULL IDENTITY(1, 1),
[AdvanceFID] [int] NULL,
[CommStmtVendorFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceFromCommission] ADD CONSTRAINT [PK_AdvanceFromCommission] PRIMARY KEY CLUSTERED  ([AdvanceFromCommissionID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceFromCommission] ADD CONSTRAINT [FK_AdvanceFromCommission_Advance] FOREIGN KEY ([AdvanceFID]) REFERENCES [dbo].[Advance] ([PriKey])
GO
ALTER TABLE [dbo].[AdvanceFromCommission] ADD CONSTRAINT [FK_AdvanceFromCommission_CommStmtVendor] FOREIGN KEY ([CommStmtVendorFID]) REFERENCES [dbo].[CommStmtVendor] ([MSID])
GO
GRANT SELECT ON  [dbo].[AdvanceFromCommission] TO [MssExec]
GRANT INSERT ON  [dbo].[AdvanceFromCommission] TO [MssExec]
GRANT DELETE ON  [dbo].[AdvanceFromCommission] TO [MssExec]
GRANT UPDATE ON  [dbo].[AdvanceFromCommission] TO [MssExec]
GO
Uses