Tables [dbo].[SplitStatement]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)439
Created4:57:09 PM Thursday, September 7, 2006
Last Modified3:46:19 PM Tuesday, November 18, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_SplitStatement: SSPriKeySSPriKeyint4
No
1 - 1
Foreign Keys FK_SplitStatement_StatementHeader: [dbo].[StatementHeader].SHPriKeyIndexes IX_SplitStatement: SHPriKeySHPriKeyint4
No
StatementDescvarchar(30)30
Yes
DateDownloaddatetime8
Yes
Foreign Keys FK_SplitStatement_Sysuser: [dbo].[Sysuser].DownLoadedByIndexes IX_SplitStatement_DownLoadedBy: DownLoadedByDownLoadedByint4
Yes
DatePosteddatetime8
Yes
Foreign Keys FK_SplitStatement_Sysuser1: [dbo].[Sysuser].WhoPostedIndexes IX_SplitStatement_WhoPosted: WhoPostedWhoPostedint4
Yes
DateSplitdatetime8
Yes
Foreign Keys FK_SplitStatement_Sysuser2: [dbo].[Sysuser].SplitByIndexes IX_SplitStatement_SplitBy: SplitBySplitByint4
Yes
Amountmoney8
Yes
Indexes IX_SplitStatement_Status: StatusStatusvarchar(15)15
Yes
Foreign Keys FK_SplitStatement_AccountingNote: [dbo].[AccountingNote].ANPriKeyANPriKeyint4
Yes
DateEntereddatetime8
Yes
Foreign Keys FK_SplitStatement_Sysuser3: [dbo].[Sysuser].EnteredByIndexes IX_SplitStatement_EnteredBy: EnteredByEnteredByint4
Yes
Foreign Keys FK_SplitStatement_AGENT: [dbo].[Agent].AgentPriKeyAgentPriKeyint4
Yes
IsClaimsBatchbit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_SplitStatement: SSPriKeyPK_SplitStatementSSPriKey
Yes
80
IX_SplitStatementSHPriKey80
IX_SplitStatement_DownLoadedByDownLoadedBy
IX_SplitStatement_EnteredByEnteredBy
IX_SplitStatement_SplitBySplitBy
IX_SplitStatement_StatusStatus80
IX_SplitStatement_WhoPostedWhoPosted
Foreign Keys Foreign Keys
NameColumns
FK_SplitStatement_AGENTAgentPriKey->[dbo].[Agent].[AgentPriKey]
FK_SplitStatement_AccountingNoteANPriKey->[dbo].[AccountingNote].[ANPriKey]
FK_SplitStatement_SysuserDownLoadedBy->[dbo].[Sysuser].[SysUserID]
FK_SplitStatement_Sysuser3EnteredBy->[dbo].[Sysuser].[SysUserID]
FK_SplitStatement_StatementHeaderSHPriKey->[dbo].[StatementHeader].[SHPriKey]
FK_SplitStatement_Sysuser2SplitBy->[dbo].[Sysuser].[SysUserID]
FK_SplitStatement_Sysuser1WhoPosted->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SplitStatement]
(
[SSPriKey] [int] NOT NULL IDENTITY(1, 1),
[SHPriKey] [int] NOT NULL,
[StatementDesc] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DateDownload] [datetime] NULL,
[DownLoadedBy] [int] NULL,
[DatePosted] [datetime] NULL,
[WhoPosted] [int] NULL,
[DateSplit] [datetime] NULL,
[SplitBy] [int] NULL,
[Amount] [money] NULL,
[Status] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ANPriKey] [int] NULL,
[DateEntered] [datetime] NULL,
[EnteredBy] [int] NULL,
[AgentPriKey] [int] NULL,
[IsClaimsBatch] [bit] NOT NULL CONSTRAINT [DF_SplitStatement_IsClaimsBatch] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SplitStatement] ADD CONSTRAINT [PK_SplitStatement] PRIMARY KEY CLUSTERED  ([SSPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SplitStatement_DownLoadedBy] ON [dbo].[SplitStatement] ([DownLoadedBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SplitStatement_EnteredBy] ON [dbo].[SplitStatement] ([EnteredBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SplitStatement] ON [dbo].[SplitStatement] ([SHPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SplitStatement_SplitBy] ON [dbo].[SplitStatement] ([SplitBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SplitStatement_Status] ON [dbo].[SplitStatement] ([Status]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SplitStatement_WhoPosted] ON [dbo].[SplitStatement] ([WhoPosted]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SplitStatement] ADD CONSTRAINT [FK_SplitStatement_AGENT] FOREIGN KEY ([AgentPriKey]) REFERENCES [dbo].[Agent] ([AgentPriKey])
GO
ALTER TABLE [dbo].[SplitStatement] ADD CONSTRAINT [FK_SplitStatement_AccountingNote] FOREIGN KEY ([ANPriKey]) REFERENCES [dbo].[AccountingNote] ([ANPriKey])
GO
ALTER TABLE [dbo].[SplitStatement] ADD CONSTRAINT [FK_SplitStatement_Sysuser] FOREIGN KEY ([DownLoadedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[SplitStatement] ADD CONSTRAINT [FK_SplitStatement_Sysuser3] FOREIGN KEY ([EnteredBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[SplitStatement] ADD CONSTRAINT [FK_SplitStatement_StatementHeader] FOREIGN KEY ([SHPriKey]) REFERENCES [dbo].[StatementHeader] ([SHPriKey])
GO
ALTER TABLE [dbo].[SplitStatement] ADD CONSTRAINT [FK_SplitStatement_Sysuser2] FOREIGN KEY ([SplitBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[SplitStatement] ADD CONSTRAINT [FK_SplitStatement_Sysuser1] FOREIGN KEY ([WhoPosted]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[SplitStatement] TO [MssExec]
GRANT INSERT ON  [dbo].[SplitStatement] TO [MssExec]
GRANT DELETE ON  [dbo].[SplitStatement] TO [MssExec]
GRANT UPDATE ON  [dbo].[SplitStatement] TO [MssExec]
GO
Uses
Used By