Tables [dbo].[PMPostingAccounts]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)48
Created4:57:09 PM Thursday, September 7, 2006
Last Modified7:48:21 PM Saturday, February 7, 2026
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_PMPostingAccounts: PMPostingAccountsPrikeyPMPostingAccountsPrikeyint4
No
1 - 1
Descriptionvarchar(20)20
Yes
GLNumbervarchar(66)66
Yes
CashAccountbit1
No
Foreign Keys FK_PMPostingAccounts_AccountingAccount: [dbo].[AccountingAccount].AccountingAccountFidAccountingAccountFidint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_PMPostingAccounts: PMPostingAccountsPrikeyPK_PMPostingAccountsPMPostingAccountsPrikey
Yes
80
Check Constraints Check Constraints
NameConstraint
CK_PMPostingAccounts_AccountingAccount_CashAccount([AccountingAccountFid] IS NULL OR [CashAccount]=(0))
CK_PMPostingAccounts_AccountingAccount_GLNumber_AccountingAccount([GLNumber] IS NOT NULL AND [AccountingAccountFid] IS NULL OR [GLNumber] IS NULL AND [AccountingAccountFid] IS NOT NULL)
Foreign Keys Foreign Keys
NameColumns
FK_PMPostingAccounts_AccountingAccountAccountingAccountFid->[dbo].[AccountingAccount].[AccountingAccountId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[PMPostingAccounts]
(
[PMPostingAccountsPrikey] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[GLNumber] [varchar] (66) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CashAccount] [bit] NOT NULL,
[AccountingAccountFid] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PMPostingAccounts] ADD CONSTRAINT [CK_PMPostingAccounts_AccountingAccount_CashAccount] CHECK (([AccountingAccountFid] IS NULL OR [CashAccount]=(0)))
GO
ALTER TABLE [dbo].[PMPostingAccounts] ADD CONSTRAINT [CK_PMPostingAccounts_AccountingAccount_GLNumber_AccountingAccount] CHECK (([GLNumber] IS NOT NULL AND [AccountingAccountFid] IS NULL OR [GLNumber] IS NULL AND [AccountingAccountFid] IS NOT NULL))
GO
ALTER TABLE [dbo].[PMPostingAccounts] ADD CONSTRAINT [PK_PMPostingAccounts] PRIMARY KEY CLUSTERED  ([PMPostingAccountsPrikey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PMPostingAccounts] ADD CONSTRAINT [FK_PMPostingAccounts_AccountingAccount] FOREIGN KEY ([AccountingAccountFid]) REFERENCES [dbo].[AccountingAccount] ([AccountingAccountId])
GO
GRANT SELECT ON  [dbo].[PMPostingAccounts] TO [MssExec]
GRANT INSERT ON  [dbo].[PMPostingAccounts] TO [MssExec]
GRANT DELETE ON  [dbo].[PMPostingAccounts] TO [MssExec]
GRANT UPDATE ON  [dbo].[PMPostingAccounts] TO [MssExec]
GO
Uses
Used By