Northwind Database (Document! X Sample)
Production.Illustration Table
AdventureWorks Database > Production Schema : Production.Illustration Table
Description
Bicycle assembly diagrams.
Properties
Creation Date27/10/2017 14:33
File GroupPRIMARY
Text File GroupPRIMARY
System Object
Published for Replication
Rows5
Data Space Used240.00 KB
Index Space Used8.00 KB
Columns
 Column NameDescriptionDatatypeLengthAllow NullsDefaultFormula
Primary Key Primary key for Illustration records.Integer4   
 Illustrations used in manufacturing instructions. Stored as XML.Xml0  
 Date and time the record was last updated.DBTimeStamp4 
(getdate())
 
Indexes
IndexDescriptionPrimaryUnique
Primary key (clustered) constraint
Relationships
RelationshipDescription
Foreign key constraint referencing Illustration.IllustrationID.
Objects that depend on Production.Illustration
 Database ObjectObject TypeDescriptionDep Level
Production.ProductModelIllustration tableProduction.ProductModelIllustrationTableCross-reference table mapping product models and illustrations.1
SQL
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE TABLE [Production].[Illustration](
    [IllustrationID] [int] IDENTITY(1,1) NOT NULL,
    [Diagram] [xml] NULL,
    [ModifiedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_Illustration_IllustrationID] PRIMARY KEY CLUSTERED 
(
    [IllustrationID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

ALTER TABLE [Production].[Illustration] ADD  CONSTRAINT [DF_Illustration_ModifiedDate]  DEFAULT (getdate()) FOR [ModifiedDate]
See Also

Related Objects

Production Schema
AdventureWorks Database