Tables [dbo].[StatementDetailDistVendor]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:27:18 AM Monday, March 30, 2015
Last Modified10:27:19 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_StatementDetailDistVendor: StatementDetailDistVendorIDStatementDetailDistVendorIDint4
No
1 - 1
Foreign Keys FK_StatementDetailDistVendor_StatementDetailDistID: [dbo].[StatementDetailDist].StatementDetailDistFIDIndexes IX_StatementDetailDistVendor_StatementDetailDistID: StatementDetailDistFIDStatementDetailDistFIDint4
No
VendorIDvarchar(15)15
Yes
Amountmoney8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_StatementDetailDistVendor: StatementDetailDistVendorIDPK_StatementDetailDistVendorStatementDetailDistVendorID
Yes
IX_StatementDetailDistVendor_StatementDetailDistIDStatementDetailDistFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_StatementDetailDistVendor_StatementDetailDistIDCascadeStatementDetailDistFID->[dbo].[StatementDetailDist].[SDDPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StatementDetailDistVendor]
(
[StatementDetailDistVendorID] [int] NOT NULL IDENTITY(1, 1),
[StatementDetailDistFID] [int] NOT NULL,
[VendorID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [money] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementDetailDistVendor] ADD CONSTRAINT [PK_StatementDetailDistVendor] PRIMARY KEY CLUSTERED  ([StatementDetailDistVendorID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementDetailDistVendor_StatementDetailDistID] ON [dbo].[StatementDetailDistVendor] ([StatementDetailDistFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementDetailDistVendor] ADD CONSTRAINT [FK_StatementDetailDistVendor_StatementDetailDistID] FOREIGN KEY ([StatementDetailDistFID]) REFERENCES [dbo].[StatementDetailDist] ([SDDPriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[StatementDetailDistVendor] TO [MssExec]
GRANT INSERT ON  [dbo].[StatementDetailDistVendor] TO [MssExec]
GRANT DELETE ON  [dbo].[StatementDetailDistVendor] TO [MssExec]
GRANT UPDATE ON  [dbo].[StatementDetailDistVendor] TO [MssExec]
GO
Uses