Tables [dbo].[StatementHeader]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)20218
Created4:57:09 PM Thursday, September 7, 2006
Last Modified9:01:35 AM Friday, October 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_StatementHeader: SHPriKeySHPriKeyint4
No
1 - 1
DateEntereddatetime8
Yes
StatementDescvarchar(30)30
No
DateDownloaddatetime8
Yes
Foreign Keys FK_StatementHeader_Sysuser: [dbo].[Sysuser].DownLoadedByIndexes IX_StatementHeader_DownLoadedBy: DownLoadedByDownLoadedByint4
Yes
DatePosteddatetime8
Yes
Foreign Keys FK_StatementHeader_Sysuser1: [dbo].[Sysuser].PostedByIndexes IX_StatementHeader_PostedBy: PostedByPostedByint4
Yes
DateSplitdatetime8
Yes
Foreign Keys FK_StatementHeader_Sysuser2: [dbo].[Sysuser].SplitbyIndexes IX_StatementHeader_Splitby: SplitbySplitbyint4
Yes
JournalDatedatetime8
Yes
Amountmoney8
Yes
(0)
Foreign Keys FK_StatementHeader_AGENT: [dbo].[Agent].AgentPriKeyAgentPriKeyint4
No
Indexes IX_StatementHeader_Status: StatusStatusvarchar(15)15
Yes
Foreign Keys FK_StatementHeader_AccountingNote: [dbo].[AccountingNote].ANPriKeyIndexes IX_StatementHeader_ANPriKey: ANPriKeyANPriKeyint4
Yes
Foreign Keys FK_StatementHeader_Sysuser3: [dbo].[Sysuser].EnteredByIndexes IX_StatementHeader_EnteredBy: EnteredByEnteredByint4
Yes
Foreign Keys FK_StatementHeader_Branch: [dbo].[Branch].BranchPriKeyIndexes IX_StatementHeader_BranchPriKey: BranchPriKeyBranchPriKeyint4
No
IsCRBatchsmallint2
Yes
FileNamevarchar(64)64
Yes
Foreign Keys FK_StatementHeader_PMPostingAccounts: [dbo].[PMPostingAccounts].PMPostingAccountsPriKeyPMPostingAccountsPriKeyint4
Yes
IsManualsmallint2
Yes
IsClaimsBatchbit1
No
((0))
IsVanLineStatementbit1
No
((0))
IsPPBatchbit1
No
((0))
IsGp2015Batchbit1
No
((0))
Foreign Keys FK_StatementHeader_PlasticProviderType: [dbo].[PlasticProviderType].ProviderTypeFIDIndexes IX_StatementHeader_ProviderType: ProviderTypeFIDProviderTypeFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_StatementHeader: SHPriKeyPK_StatementHeaderSHPriKey
Yes
80
IX_StatementHeader_ANPriKeyANPriKey
IX_StatementHeader_BranchPriKeyBranchPriKey
IX_StatementHeader_DownLoadedByDownLoadedBy
IX_StatementHeader_EnteredByEnteredBy
IX_StatementHeader_PostedByPostedBy
IX_StatementHeader_ProviderTypeProviderTypeFID
IX_StatementHeader_SplitbySplitby
IX_StatementHeader_StatusStatus80
Foreign Keys Foreign Keys
NameColumns
FK_StatementHeader_AGENTAgentPriKey->[dbo].[Agent].[AgentPriKey]
FK_StatementHeader_AccountingNoteANPriKey->[dbo].[AccountingNote].[ANPriKey]
FK_StatementHeader_BranchBranchPriKey->[dbo].[Branch].[BranchPriKey]
FK_StatementHeader_SysuserDownLoadedBy->[dbo].[Sysuser].[SysUserID]
FK_StatementHeader_Sysuser3EnteredBy->[dbo].[Sysuser].[SysUserID]
FK_StatementHeader_PMPostingAccountsPMPostingAccountsPriKey->[dbo].[PMPostingAccounts].[PMPostingAccountsPrikey]
FK_StatementHeader_Sysuser1PostedBy->[dbo].[Sysuser].[SysUserID]
FK_StatementHeader_PlasticProviderTypeProviderTypeFID->[dbo].[PlasticProviderType].[ProviderTypeID]
FK_StatementHeader_Sysuser2Splitby->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StatementHeader]
(
[SHPriKey] [int] NOT NULL IDENTITY(1, 1),
[DateEntered] [datetime] NULL,
[StatementDesc] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DateDownload] [datetime] NULL,
[DownLoadedBy] [int] NULL,
[DatePosted] [datetime] NULL,
[PostedBy] [int] NULL,
[DateSplit] [datetime] NULL,
[Splitby] [int] NULL,
[JournalDate] [datetime] NULL,
[Amount] [money] NULL CONSTRAINT [DF_StatementHeader_Amount] DEFAULT (0),
[AgentPriKey] [int] NOT NULL,
[Status] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ANPriKey] [int] NULL,
[EnteredBy] [int] NULL,
[BranchPriKey] [int] NOT NULL,
[IsCRBatch] [smallint] NULL,
[FileName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PMPostingAccountsPriKey] [int] NULL,
[IsManual] [smallint] NULL,
[IsClaimsBatch] [bit] NOT NULL CONSTRAINT [DF_StatementHeader_IsClaimsBatch] DEFAULT ((0)),
[IsVanLineStatement] [bit] NOT NULL CONSTRAINT [DF_StatementHeader_IsVanLineStatement] DEFAULT ((0)),
[IsPPBatch] [bit] NOT NULL CONSTRAINT [DF_StatementHeader_IsPPBatch] DEFAULT ((0)),
[IsGp2015Batch] [bit] NOT NULL CONSTRAINT [DF_StatementHeader_IsGp2015Batch] DEFAULT ((0)),
[ProviderTypeFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [PK_StatementHeader] PRIMARY KEY CLUSTERED  ([SHPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementHeader_ANPriKey] ON [dbo].[StatementHeader] ([ANPriKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementHeader_BranchPriKey] ON [dbo].[StatementHeader] ([BranchPriKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementHeader_DownLoadedBy] ON [dbo].[StatementHeader] ([DownLoadedBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementHeader_EnteredBy] ON [dbo].[StatementHeader] ([EnteredBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementHeader_PostedBy] ON [dbo].[StatementHeader] ([PostedBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementHeader_ProviderType] ON [dbo].[StatementHeader] ([ProviderTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementHeader_Splitby] ON [dbo].[StatementHeader] ([Splitby]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementHeader_Status] ON [dbo].[StatementHeader] ([Status]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_AGENT] FOREIGN KEY ([AgentPriKey]) REFERENCES [dbo].[Agent] ([AgentPriKey])
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_AccountingNote] FOREIGN KEY ([ANPriKey]) REFERENCES [dbo].[AccountingNote] ([ANPriKey])
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_Branch] FOREIGN KEY ([BranchPriKey]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_Sysuser] FOREIGN KEY ([DownLoadedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_Sysuser3] FOREIGN KEY ([EnteredBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_PMPostingAccounts] FOREIGN KEY ([PMPostingAccountsPriKey]) REFERENCES [dbo].[PMPostingAccounts] ([PMPostingAccountsPrikey])
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_Sysuser1] FOREIGN KEY ([PostedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_PlasticProviderType] FOREIGN KEY ([ProviderTypeFID]) REFERENCES [dbo].[PlasticProviderType] ([ProviderTypeID])
GO
ALTER TABLE [dbo].[StatementHeader] ADD CONSTRAINT [FK_StatementHeader_Sysuser2] FOREIGN KEY ([Splitby]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[StatementHeader] TO [MssExec]
GRANT INSERT ON  [dbo].[StatementHeader] TO [MssExec]
GRANT DELETE ON  [dbo].[StatementHeader] TO [MssExec]
GRANT UPDATE ON  [dbo].[StatementHeader] TO [MssExec]
GO
Uses
Used By