Tables [dbo].[LSMaterial]
Properties
PropertyValue
Row Count (~)275
Created4:57:08 PM Thursday, September 7, 2006
Last Modified3:37:55 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_LSMaterial: LSMPriKeyLSMPriKeyint4
No
1 - 1
Foreign Keys FK_LSMaterial_LOCSERV: [dbo].[LocServ].LocServPriKeyIndexes IX_LSMaterial_LocServPriKey: LocServPriKeyLocServPriKeyint4
No
ActQuantityint4
Yes
Foreign Keys FK_LSMaterial_MaterialItemCodeMap: [dbo].[MaterialItemCodeMap].MaterialItemCodeMapFIDIndexes IX_LSMaterial_MaterialItemCodeMap: MaterialItemCodeMapFIDMaterialItemCodeMapFIDint4
Yes
EstQuantityint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_LSMaterial: LSMPriKeyPK_LSMaterialLSMPriKey
Yes
80
IX_LSMaterial_LocServPriKeyLocServPriKey
IX_LSMaterial_MaterialItemCodeMapMaterialItemCodeMapFID80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_LSMaterial_LOCSERVCascadeLocServPriKey->[dbo].[LocServ].[PriKey]
FK_LSMaterial_MaterialItemCodeMapMaterialItemCodeMapFID->[dbo].[MaterialItemCodeMap].[MaterialItemCodeMapID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[LSMaterial]
(
[LSMPriKey] [int] NOT NULL IDENTITY(1, 1),
[LocServPriKey] [int] NOT NULL,
[ActQuantity] [int] NULL,
[MaterialItemCodeMapFID] [int] NULL,
[EstQuantity] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSMaterial] ADD CONSTRAINT [PK_LSMaterial] PRIMARY KEY CLUSTERED  ([LSMPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LSMaterial_LocServPriKey] ON [dbo].[LSMaterial] ([LocServPriKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LSMaterial_MaterialItemCodeMap] ON [dbo].[LSMaterial] ([MaterialItemCodeMapFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSMaterial] ADD CONSTRAINT [FK_LSMaterial_LOCSERV] FOREIGN KEY ([LocServPriKey]) REFERENCES [dbo].[LocServ] ([PriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[LSMaterial] ADD CONSTRAINT [FK_LSMaterial_MaterialItemCodeMap] FOREIGN KEY ([MaterialItemCodeMapFID]) REFERENCES [dbo].[MaterialItemCodeMap] ([MaterialItemCodeMapID])
GO
GRANT SELECT ON  [dbo].[LSMaterial] TO [MssExec]
GRANT INSERT ON  [dbo].[LSMaterial] TO [MssExec]
GRANT DELETE ON  [dbo].[LSMaterial] TO [MssExec]
GRANT UPDATE ON  [dbo].[LSMaterial] TO [MssExec]
GO
Uses
Used By