Tables [dbo].[CommStmtVendor]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)2091
Created4:57:07 PM Thursday, September 7, 2006
Last Modified8:58:25 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_CommStmtVendor: MSIDMSIDint4
No
1 - 1
Foreign Keys FK_CommStmtVendor_CommStmtHeader: [dbo].[CommStmtHeader].CommStmtHeaderIndexes IX_CommStmtVendor_CommStmtHeader: CommStmtHeaderCommStmtHeaderint4
No
Indexes IX_CommStmtVendor_VendorID: VendorIDVendorIDvarchar(15)15
No
VendorNamevarchar(65)65
No
Balancemoney8
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_CommStmtVendor: MSIDPK_CommStmtVendorMSID
Yes
80
IX_CommStmtVendor_CommStmtHeaderCommStmtHeader80
IX_CommStmtVendor_VendorIDVendorID80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_CommStmtVendor_CommStmtHeaderCascadeCommStmtHeader->[dbo].[CommStmtHeader].[MSID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CommStmtVendor]
(
[MSID] [int] NOT NULL IDENTITY(1, 1),
[CommStmtHeader] [int] NOT NULL,
[VendorID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VendorName] [varchar] (65) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Balance] [money] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CommStmtVendor] ADD CONSTRAINT [PK_CommStmtVendor] PRIMARY KEY NONCLUSTERED  ([MSID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CommStmtVendor_CommStmtHeader] ON [dbo].[CommStmtVendor] ([CommStmtHeader]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CommStmtVendor_VendorID] ON [dbo].[CommStmtVendor] ([VendorID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CommStmtVendor] ADD CONSTRAINT [FK_CommStmtVendor_CommStmtHeader] FOREIGN KEY ([CommStmtHeader]) REFERENCES [dbo].[CommStmtHeader] ([MSID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[CommStmtVendor] TO [MssExec]
GRANT INSERT ON  [dbo].[CommStmtVendor] TO [MssExec]
GRANT DELETE ON  [dbo].[CommStmtVendor] TO [MssExec]
GRANT UPDATE ON  [dbo].[CommStmtVendor] TO [MssExec]
GO
Uses
Used By