Tables [dbo].[VanlineStatementDetailDist]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:16:06 AM Friday, November 8, 2024
Last Modified9:16:09 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_VanlineStatementDetailDist: VanlineStatementDetailDistIDVanlineStatementDetailDistIDint4
No
1 - 1
Foreign Keys FK_VanlineStatementDetailDist_VanlineStatementDetail: [dbo].[VanlineStatementDetail].VanlineStatementDetailFIDIndexes IX_VanlineStatementDetailDist_Detail: VanlineStatementDetailFID\ServiceCodeExternalVanlineStatementDetailFIDint4
No
Indexes IX_VanlineStatementDetailDist_Detail: VanlineStatementDetailFID\ServiceCodeExternalServiceCodeExternalvarchar(10)10
Yes
ServiceDescriptionvarchar(128)128
No
ServiceCodevarchar(4)4
Yes
InvoiceNumbervarchar(30)30
Yes
Amountmoney8
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_VanlineStatementDetailDist: VanlineStatementDetailDistIDPK_VanlineStatementDetailDistVanlineStatementDetailDistID
Yes
IX_VanlineStatementDetailDist_DetailVanlineStatementDetailFID, ServiceCodeExternal
Foreign Keys Foreign Keys
NameColumns
FK_VanlineStatementDetailDist_VanlineStatementDetailVanlineStatementDetailFID->[dbo].[VanlineStatementDetail].[VanlineStatementDetailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[VanlineStatementDetailDist]
(
[VanlineStatementDetailDistID] [int] NOT NULL IDENTITY(1, 1),
[VanlineStatementDetailFID] [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].[VanlineStatementDetailDist] ADD CONSTRAINT [PK_VanlineStatementDetailDist] PRIMARY KEY CLUSTERED  ([VanlineStatementDetailDistID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_VanlineStatementDetailDist_Detail] ON [dbo].[VanlineStatementDetailDist] ([VanlineStatementDetailFID], [ServiceCodeExternal]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanlineStatementDetailDist] ADD CONSTRAINT [FK_VanlineStatementDetailDist_VanlineStatementDetail] FOREIGN KEY ([VanlineStatementDetailFID]) REFERENCES [dbo].[VanlineStatementDetail] ([VanlineStatementDetailID])
GO
GRANT SELECT ON  [dbo].[VanlineStatementDetailDist] TO [MssExec]
GRANT INSERT ON  [dbo].[VanlineStatementDetailDist] TO [MssExec]
GRANT DELETE ON  [dbo].[VanlineStatementDetailDist] TO [MssExec]
GRANT UPDATE ON  [dbo].[VanlineStatementDetailDist] TO [MssExec]
GO
Uses