[dbo].[StatementDetailDistVendor]
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