Tables [dbo].[OrdCrates]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1309
Created4:57:08 PM Thursday, September 7, 2006
Last Modified11:13:40 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OrdCrates: OCPriKeyOCPriKeyint4
No
1 - 1
Foreign Keys FK_OrdCrates_ORDERS: [dbo].[Orders].OrdPriKeyIndexes IX_OrdCrates_OrdPriKey: OrdPriKeyOrdPriKeyint4
No
Descriptionvarchar(128)128
Yes
Quantityint4
No
Heightint4
No
Widthint4
No
Lengthint4
No
CubicFeetfloat8
No
Foreign Keys FK_OrdCrates_CrateItemCodeMap: [dbo].[CrateItemCodeMap].CrateItemCodeMapFIDIndexes IX_OrdCrates_CrateItemCodeMap: CrateItemCodeMapFIDCrateItemCodeMapFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_OrdCrates: OCPriKeyPK_OrdCratesOCPriKey
Yes
80
IX_OrdCrates_CrateItemCodeMapCrateItemCodeMapFID80
IX_OrdCrates_OrdPriKeyOrdPriKey80
Foreign Keys Foreign Keys
NameColumns
FK_OrdCrates_CrateItemCodeMapCrateItemCodeMapFID->[dbo].[CrateItemCodeMap].[CrateItemCodeMapID]
FK_OrdCrates_ORDERSOrdPriKey->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OrdCrates]
(
[OCPriKey] [int] NOT NULL IDENTITY(1, 1),
[OrdPriKey] [int] NOT NULL,
[Description] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Quantity] [int] NOT NULL,
[Height] [int] NOT NULL,
[Width] [int] NOT NULL,
[Length] [int] NOT NULL,
[CubicFeet] [float] NOT NULL,
[CrateItemCodeMapFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrdCrates] ADD CONSTRAINT [PK_OrdCrates] PRIMARY KEY CLUSTERED  ([OCPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OrdCrates_CrateItemCodeMap] ON [dbo].[OrdCrates] ([CrateItemCodeMapFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OrdCrates_OrdPriKey] ON [dbo].[OrdCrates] ([OrdPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrdCrates] ADD CONSTRAINT [FK_OrdCrates_CrateItemCodeMap] FOREIGN KEY ([CrateItemCodeMapFID]) REFERENCES [dbo].[CrateItemCodeMap] ([CrateItemCodeMapID])
GO
ALTER TABLE [dbo].[OrdCrates] ADD CONSTRAINT [FK_OrdCrates_ORDERS] FOREIGN KEY ([OrdPriKey]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[OrdCrates] TO [MssExec]
GRANT INSERT ON  [dbo].[OrdCrates] TO [MssExec]
GRANT DELETE ON  [dbo].[OrdCrates] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrdCrates] TO [MssExec]
GO
Uses
Used By