[dbo].[VanLineStatements]
CREATE TABLE [dbo].[VanLineStatements]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[SDPriKey] [int] NOT NULL,
[ServiceCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [money] NULL,
[AccountingServiceCodeFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanLineStatements] ADD CONSTRAINT [PK_VanLineStatements] PRIMARY KEY CLUSTERED ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_VanLineStatements_AccountingServiceCodeFID] ON [dbo].[VanLineStatements] ([AccountingServiceCodeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_VanLineStatements_SDPriKey] ON [dbo].[VanLineStatements] ([SDPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanLineStatements] ADD CONSTRAINT [FK_VanLineStatements_ServiceCodeFID] FOREIGN KEY ([AccountingServiceCodeFID]) REFERENCES [dbo].[ServiceCode] ([ServiceCodePriKey])
GO
GRANT SELECT ON [dbo].[VanLineStatements] TO [MssExec]
GRANT INSERT ON [dbo].[VanLineStatements] TO [MssExec]
GRANT DELETE ON [dbo].[VanLineStatements] TO [MssExec]
GRANT UPDATE ON [dbo].[VanLineStatements] TO [MssExec]
GO