Tables [dbo].[ClaimSettlementClearingAccount]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)48
Created6:24:59 PM Monday, April 16, 2007
Last Modified11:13:38 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ClaimSettlementClearingAccount: ClaimSettlementClearingAccountIDClaimSettlementClearingAccountIDint4
No
1 - 1
Foreign Keys FK_ClaimSettlementClearingAccount_Branch: [dbo].[Branch].BranchFIDIndexes IX_ClaimSettlementClearingAccount_Unique_Branch: BranchFIDBranchFIDint4
Yes
GLAccountvarchar(16)16
Yes
GLSubAccountvarchar(16)16
Yes
IsGLDefaultbit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimSettlementClearingAccount: ClaimSettlementClearingAccountIDPK_ClaimSettlementClearingAccountClaimSettlementClearingAccountID
Yes
80
IX_ClaimSettlementClearingAccount_Unique_BranchBranchFID
Yes
80
Check Constraints Check Constraints
NameConstraint
CK_ClaimSettlementClearingAccount_IsGLDefault((1)=[dbo].[ClaimSettlementClearingAccountGLDefault]([ClaimSettlementClearingAccountID],[IsGLDefault]))
Foreign Keys Foreign Keys
NameColumns
FK_ClaimSettlementClearingAccount_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimSettlementClearingAccount]
(
[ClaimSettlementClearingAccountID] [int] NOT NULL IDENTITY(1, 1),
[BranchFID] [int] NULL,
[GLAccount] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[GLSubAccount] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsGLDefault] [bit] NOT NULL CONSTRAINT [DF_ClaimSettlementClearingAccount_IsGLDefault] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimSettlementClearingAccount] ADD CONSTRAINT [CK_ClaimSettlementClearingAccount_IsGLDefault] CHECK (((1)=[dbo].[ClaimSettlementClearingAccountGLDefault]([ClaimSettlementClearingAccountID],[IsGLDefault])))
GO
ALTER TABLE [dbo].[ClaimSettlementClearingAccount] ADD CONSTRAINT [PK_ClaimSettlementClearingAccount] PRIMARY KEY NONCLUSTERED  ([ClaimSettlementClearingAccountID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimSettlementClearingAccount] ADD CONSTRAINT [IX_ClaimSettlementClearingAccount_Unique_Branch] UNIQUE NONCLUSTERED  ([BranchFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimSettlementClearingAccount] ADD CONSTRAINT [FK_ClaimSettlementClearingAccount_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON  [dbo].[ClaimSettlementClearingAccount] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimSettlementClearingAccount] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimSettlementClearingAccount] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimSettlementClearingAccount] TO [MssExec]
GO
Uses