Tables [dbo].[CommStmtHeader]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)1983
Created4:57:07 PM Thursday, September 7, 2006
Last Modified8:56:13 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_CommStmtHeader: MSIDMSIDint4
No
1 - 1
VendorClassIDvarchar(11)11
No
VendorClassvarchar(31)31
No
DateCreateddatetime8
No
ToDatedatetime8
No
Finalbit1
No
Foreign Keys FK_CommStmtHeader_Sysuser: [dbo].[Sysuser].FinalizedByIndexes IX_CommStmtHeader_FinalizedBy: FinalizedByFinalizedByint4
Yes
FinalizedOndatetime8
Yes
Foreign Keys FK_CommStmtHeader_Sysuser_CreatedBy: [dbo].[Sysuser].CreatedByIndexes IX_CommStmtHeader_CreatedBy: CreatedByCreatedByint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_CommStmtHeader: MSIDPK_CommStmtHeaderMSID
Yes
80
IX_CommStmtHeader_CreatedByCreatedBy
IX_CommStmtHeader_FinalizedByFinalizedBy
Foreign Keys Foreign Keys
NameColumns
FK_CommStmtHeader_Sysuser_CreatedByCreatedBy->[dbo].[Sysuser].[SysUserID]
FK_CommStmtHeader_SysuserFinalizedBy->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CommStmtHeader]
(
[MSID] [int] NOT NULL IDENTITY(1, 1),
[VendorClassID] [varchar] (11) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VendorClass] [varchar] (31) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DateCreated] [datetime] NOT NULL,
[ToDate] [datetime] NOT NULL,
[Final] [bit] NOT NULL,
[FinalizedBy] [int] NULL,
[FinalizedOn] [datetime] NULL,
[CreatedBy] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CommStmtHeader] ADD CONSTRAINT [PK_CommStmtHeader] PRIMARY KEY NONCLUSTERED  ([MSID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CommStmtHeader_CreatedBy] ON [dbo].[CommStmtHeader] ([CreatedBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CommStmtHeader_FinalizedBy] ON [dbo].[CommStmtHeader] ([FinalizedBy]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CommStmtHeader] ADD CONSTRAINT [FK_CommStmtHeader_Sysuser_CreatedBy] FOREIGN KEY ([CreatedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[CommStmtHeader] ADD CONSTRAINT [FK_CommStmtHeader_Sysuser] FOREIGN KEY ([FinalizedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[CommStmtHeader] TO [MssExec]
GRANT INSERT ON  [dbo].[CommStmtHeader] TO [MssExec]
GRANT DELETE ON  [dbo].[CommStmtHeader] TO [MssExec]
GRANT UPDATE ON  [dbo].[CommStmtHeader] TO [MssExec]
GO
Uses
Used By