Database reference - AdventureWorks

AdventureWorks -  tables -  [Production].[Illustration]

Description

Bicycle assembly diagrams. 

Table properties

namevalue
name[Production].[Illustration]
createdMar 19 2009 9:08PM
modifiedMar 19 2009 9:08PM 
ansi nullson 
quoted identifieron 
row count5
Size of data184 kb
Size of indexes8 kb
Maximum size of a single row2,147,483,658 bytes

Columns

columndatatypelengthbytesdefaultnullsPKFKUQcomputedcomment
IllustrationIDint identity(1,1)104 no  yes    no  Primary key for Illustration records. 
Diagramxmlmax2147483646 yes      no  Illustrations used in manufacturing instructions. Stored as XML. 
ModifiedDatedatetime238(getdate())no      no  Date and time the record was last updated. 

Indexes

namedescriptioncolumncomment
PK_Illustration_IllustrationIDclustered, unique, primary key located on PRIMARYIllustrationIDClustered index created by a primary key constraint. 

Referenced by

name
ProductModelIllustration

Foreign key graph

IllustrationProductModelIllustration

Defaults

default namecolumncomment
DF_Illustration_ModifiedDateModifiedDateDefault constraint value of GETDATE() 

Dependency graph

DF_Illustration_ModifiedDateIllustrationPK_Illustration_IllustrationID...

Sample rows

IllustrationIDDiagramModifiedDate
<!-- Generator: Adobe Illustrator 10.0, SVG Export Plug-In . SVG Version: 3.0.0 Build 76) --><svg x...  2/10/2004 1:06:11 PM 
<!-- Generator: Adobe Illustrator 10.0, SVG Export Plug-In . SVG Version: 3.0.0 Build 76) --><svg x...  2/10/2004 1:06:11 PM 
<!-- Generator: Adobe Illustrator 10.0, SVG Export Plug-In . SVG Version: 3.0.0 Build 76) --><svg x...  2/10/2004 1:06:11 PM 
<!-- Generator: Adobe Illustrator 10.0, SVG Export Plug-In . SVG Version: 3.0.0 Build 76) --><svg x...  2/10/2004 1:06:12 PM 
<!-- Generator: Adobe Illustrator 10.0, SVG Export Plug-In . SVG Version: 3.0.0 Build 76) --><svg x...  2/10/2004 1:06:12 PM 

Code

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]

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

Powered by Yoyodyne © 1971