Tables [dbo].[LSCrates]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)2
Created4:57:07 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_LSCRATES: LSCPriKeyLSCPriKeyint4
No
1 - 1
Foreign Keys FK_LSCRATES_LOCSERV: [dbo].[LocServ].LSPriKeyIndexes IX_LSCrates_LSPriKey: LSPriKeyLSPriKeyint4
No
Quantityint4
Yes
Descriptionvarchar(128)128
Yes
Heightfloat8
Yes
Widthfloat8
Yes
Lengthfloat8
Yes
CubicFeetfloat8
Yes
Foreign Keys FK_LSCrates_CrateItemCodeMap: [dbo].[CrateItemCodeMap].CrateItemCodeMapFIDIndexes IX_LSCrates_CrateItemCodeMap: CrateItemCodeMapFIDCrateItemCodeMapFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_LSCRATES: LSCPriKeyPK_LSCRATESLSCPriKey
Yes
80
IX_LSCrates_CrateItemCodeMapCrateItemCodeMapFID80
IX_LSCrates_LSPriKeyLSPriKey80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_LSCrates_CrateItemCodeMapCrateItemCodeMapFID->[dbo].[CrateItemCodeMap].[CrateItemCodeMapID]
FK_LSCRATES_LOCSERVCascadeLSPriKey->[dbo].[LocServ].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[LSCrates]
(
[LSCPriKey] [int] NOT NULL IDENTITY(1, 1),
[LSPriKey] [int] NOT NULL,
[Quantity] [int] NULL,
[Description] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Height] [float] NULL,
[Width] [float] NULL,
[Length] [float] NULL,
[CubicFeet] [float] NULL,
[CrateItemCodeMapFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSCrates] ADD CONSTRAINT [PK_LSCRATES] PRIMARY KEY CLUSTERED  ([LSCPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LSCrates_CrateItemCodeMap] ON [dbo].[LSCrates] ([CrateItemCodeMapFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LSCrates_LSPriKey] ON [dbo].[LSCrates] ([LSPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSCrates] ADD CONSTRAINT [FK_LSCrates_CrateItemCodeMap] FOREIGN KEY ([CrateItemCodeMapFID]) REFERENCES [dbo].[CrateItemCodeMap] ([CrateItemCodeMapID])
GO
ALTER TABLE [dbo].[LSCrates] ADD CONSTRAINT [FK_LSCRATES_LOCSERV] FOREIGN KEY ([LSPriKey]) REFERENCES [dbo].[LocServ] ([PriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[LSCrates] TO [MssExec]
GRANT INSERT ON  [dbo].[LSCrates] TO [MssExec]
GRANT DELETE ON  [dbo].[LSCrates] TO [MssExec]
GRANT UPDATE ON  [dbo].[LSCrates] TO [MssExec]
GO
Uses