Properties

Owner: Production 
Creation Date: 04/26/2006 
Located On: PRIMARY 
Data Size KB:
Index Size KB: 24 
Rows: 16 
Description: Manufacturing failure reasons lookup table. 

Columns

Name Data Type Length NULL Default IsIdentity IsGUID Description
    ScrapReasonID  smallint          Primary key for ScrapReason records. 
    Name  Name  100          Failure description. 
    ModifiedDate  datetime    (getdate())      Date and time the record was last updated. 
Total: 3 column(s)

Identity column

Name Seed Increment Not for replication
  ScrapReasonID   

Indexes

Index Primary Unique Description
  PK_ScrapReason_ScrapReasonID      Primary key (clustered) constraint 
  AK_ScrapReason_Name      Unique nonclustered index. 
Total: 2 index(es)

Referencing Tables

Table Foreign Key Primary Key or Unique Constraint
  Production.WorkOrder  FK_WorkOrder_ScrapReason_ScrapReasonID  PK_ScrapReason_ScrapReasonID 
Total: 1 table(s)

Objects that [Production].[ScrapReason] depends on

Object Name Owner Object Type Dep Level
  Name  dbo  User Defined type 
Total: 1 object(s)

Objects that depend on [Production].[ScrapReason]

Object Name Owner Object Type Dep Level
  WorkOrder  Production  Table 
  WorkOrderRouting  Production  Table 
  iWorkOrder  Production  Trigger 
  uWorkOrder  Production  Trigger 
Total: 4 object(s)

SQL

CREATE TABLE [ScrapReason] (
    [ScrapReasonID] [smallint] IDENTITY (1, 1) NOT NULL ,
    [Name] [Name] NOT NULL ,
    [ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_ScrapReason_ModifiedDate] DEFAULT (getdate()),
    CONSTRAINT [PK_ScrapReason_ScrapReasonID] PRIMARY KEY  CLUSTERED
    (
        [ScrapReasonID]
    )  ON [PRIMARY]
) ON [PRIMARY]
GO


See Also

List of tables