Tables [dbo].[VanlineStatementStageDetailDist]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:11:36 AM Thursday, May 23, 2024
Last Modified9:11:36 AM Thursday, May 23, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_VanlineStatementStageDetailDist: VanlineStatementStageDetailDistIDVanlineStatementStageDetailDistIDint4
No
1 - 1
Foreign Keys FK_VanlineStatementStageDetailDist_VanlineStatementStageDetail: [dbo].[VanlineStatementStageDetail].VanlineStatementStageDetailFIDIndexes IX_VanlineStatementStageDetailDist_VanlineStatementStageDetail: VanlineStatementStageDetailFIDVanlineStatementStageDetailFIDint4
No
ServiceCodeExternalvarchar(10)10
Yes
ServiceDescriptionvarchar(128)128
No
ServiceCodevarchar(4)4
Yes
InvoiceNumbervarchar(30)30
Yes
Amountmoney8
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_VanlineStatementStageDetailDist: VanlineStatementStageDetailDistIDPK_VanlineStatementStageDetailDistVanlineStatementStageDetailDistID
Yes
IX_VanlineStatementStageDetailDist_VanlineStatementStageDetailVanlineStatementStageDetailFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_VanlineStatementStageDetailDist_VanlineStatementStageDetailCascadeVanlineStatementStageDetailFID->[dbo].[VanlineStatementStageDetail].[VanlineStatementStageDetailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[VanlineStatementStageDetailDist]
(
[VanlineStatementStageDetailDistID] [int] NOT NULL IDENTITY(1, 1),
[VanlineStatementStageDetailFID] [int] NOT NULL,
[ServiceCodeExternal] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ServiceDescription] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ServiceCode] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InvoiceNumber] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [money] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanlineStatementStageDetailDist] ADD CONSTRAINT [PK_VanlineStatementStageDetailDist] PRIMARY KEY CLUSTERED  ([VanlineStatementStageDetailDistID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_VanlineStatementStageDetailDist_VanlineStatementStageDetail] ON [dbo].[VanlineStatementStageDetailDist] ([VanlineStatementStageDetailFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanlineStatementStageDetailDist] ADD CONSTRAINT [FK_VanlineStatementStageDetailDist_VanlineStatementStageDetail] FOREIGN KEY ([VanlineStatementStageDetailFID]) REFERENCES [dbo].[VanlineStatementStageDetail] ([VanlineStatementStageDetailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[VanlineStatementStageDetailDist] TO [MssExec]
GRANT INSERT ON  [dbo].[VanlineStatementStageDetailDist] TO [MssExec]
GRANT DELETE ON  [dbo].[VanlineStatementStageDetailDist] TO [MssExec]
GRANT UPDATE ON  [dbo].[VanlineStatementStageDetailDist] TO [MssExec]
GO
Uses