Tables [dbo].[ItemCodeVanLineMapping]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)618
Created9:16:06 AM Friday, November 8, 2024
Last Modified9:16:09 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ItemCodeVanLineMapping: ItemCodeVanLineMappingIDItemCodeVanLineMappingIDint4
No
1 - 1
Foreign Keys FK_ItemCodeVanLineMapping_ItemCode: [dbo].[ItemCode].ItemCodeFIDIndexes IX_ItemCodeVanLineMapping_ItemVLGroupServiceCarton: ItemCodeFID\VanlineGroupFID\VanlineServiceCode\VanlineCartonCodeItemCodeFIDint4
No
Foreign Keys FK_ItemCodeVanLineMapping_VanlineGroup: [dbo].[VanlineGroup].VanlineGroupFIDIndexes IX_ItemCodeVanLineMapping_ItemVLGroupServiceCarton: ItemCodeFID\VanlineGroupFID\VanlineServiceCode\VanlineCartonCodeIndexes IX_ItemCodeVanLineMapping_VLGroupServiceCarton: VanlineGroupFID\VanlineServiceCode\VanlineCartonCodeVanlineGroupFIDint4
No
Indexes IX_ItemCodeVanLineMapping_ItemVLGroupServiceCarton: ItemCodeFID\VanlineGroupFID\VanlineServiceCode\VanlineCartonCodeIndexes IX_ItemCodeVanLineMapping_VLGroupServiceCarton: VanlineGroupFID\VanlineServiceCode\VanlineCartonCodeVanlineServiceCodevarchar(10)10
No
Indexes IX_ItemCodeVanLineMapping_ItemVLGroupServiceCarton: ItemCodeFID\VanlineGroupFID\VanlineServiceCode\VanlineCartonCodeIndexes IX_ItemCodeVanLineMapping_VLGroupServiceCarton: VanlineGroupFID\VanlineServiceCode\VanlineCartonCodeVanlineCartonCodevarchar(10)10
Yes
VanlineDescriptionvarchar(64)64
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_ItemCodeVanLineMapping: ItemCodeVanLineMappingIDPK_ItemCodeVanLineMappingItemCodeVanLineMappingID
Yes
IX_ItemCodeVanLineMapping_ItemVLGroupServiceCartonItemCodeFID, VanlineGroupFID, VanlineServiceCode, VanlineCartonCode
IX_ItemCodeVanLineMapping_VLGroupServiceCartonVanlineGroupFID, VanlineServiceCode, VanlineCartonCode
Foreign Keys Foreign Keys
NameColumns
FK_ItemCodeVanLineMapping_ItemCodeItemCodeFID->[dbo].[ItemCode].[ICPriKey]
FK_ItemCodeVanLineMapping_VanlineGroupVanlineGroupFID->[dbo].[VanlineGroup].[VanlineGroupID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ItemCodeVanLineMapping]
(
[ItemCodeVanLineMappingID] [int] NOT NULL IDENTITY(1, 1),
[ItemCodeFID] [int] NOT NULL,
[VanlineGroupFID] [int] NOT NULL,
[VanlineServiceCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VanlineCartonCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[VanlineDescription] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ItemCodeVanLineMapping] ADD CONSTRAINT [PK_ItemCodeVanLineMapping] PRIMARY KEY NONCLUSTERED  ([ItemCodeVanLineMappingID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ItemCodeVanLineMapping_ItemVLGroupServiceCarton] ON [dbo].[ItemCodeVanLineMapping] ([ItemCodeFID], [VanlineGroupFID], [VanlineServiceCode], [VanlineCartonCode]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ItemCodeVanLineMapping_VLGroupServiceCarton] ON [dbo].[ItemCodeVanLineMapping] ([VanlineGroupFID], [VanlineServiceCode], [VanlineCartonCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ItemCodeVanLineMapping] ADD CONSTRAINT [FK_ItemCodeVanLineMapping_ItemCode] FOREIGN KEY ([ItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[ItemCodeVanLineMapping] ADD CONSTRAINT [FK_ItemCodeVanLineMapping_VanlineGroup] FOREIGN KEY ([VanlineGroupFID]) REFERENCES [dbo].[VanlineGroup] ([VanlineGroupID])
GO
GRANT SELECT ON  [dbo].[ItemCodeVanLineMapping] TO [MssExec]
GRANT INSERT ON  [dbo].[ItemCodeVanLineMapping] TO [MssExec]
GRANT DELETE ON  [dbo].[ItemCodeVanLineMapping] TO [MssExec]
GRANT UPDATE ON  [dbo].[ItemCodeVanLineMapping] TO [MssExec]
GO
Uses
Used By