Tables [dbo].[ClaimHoldingAccount]
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_ClaimHoldingAccount: ClaimHoldingAccountIDClaimHoldingAccountIDint4
No
1 - 1
Foreign Keys FK_ClaimHoldingAccount_Branch: [dbo].[Branch].BranchFIDIndexes IX_Unique_Branch: BranchFIDBranchFIDint4
Yes
GLAccountvarchar(16)16
Yes
GLSubAccountvarchar(16)16
Yes
IsGLDefaultbit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimHoldingAccount: ClaimHoldingAccountIDPK_ClaimHoldingAccountClaimHoldingAccountID
Yes
80
IX_Unique_BranchBranchFID
Yes
80
Check Constraints Check Constraints
NameConstraint
CK_ClaimHoldingAccount_IsGLDefault((1)=[dbo].[ClaimHoldingAccountGLDefault]([ClaimHoldingAccountID],[IsGLDefault]))
Foreign Keys Foreign Keys
NameColumns
FK_ClaimHoldingAccount_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimHoldingAccount]
(
[ClaimHoldingAccountID] [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_ClaimHoldingAccount_IsGLDefault] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHoldingAccount] ADD CONSTRAINT [CK_ClaimHoldingAccount_IsGLDefault] CHECK (((1)=[dbo].[ClaimHoldingAccountGLDefault]([ClaimHoldingAccountID],[IsGLDefault])))
GO
ALTER TABLE [dbo].[ClaimHoldingAccount] ADD CONSTRAINT [PK_ClaimHoldingAccount] PRIMARY KEY NONCLUSTERED  ([ClaimHoldingAccountID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHoldingAccount] ADD CONSTRAINT [IX_Unique_Branch] UNIQUE NONCLUSTERED  ([BranchFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHoldingAccount] ADD CONSTRAINT [FK_ClaimHoldingAccount_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON  [dbo].[ClaimHoldingAccount] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimHoldingAccount] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimHoldingAccount] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimHoldingAccount] TO [MssExec]
GO
Uses