Database reference - AdventureWorks2008

AdventureWorks2008 -  tables -  [dbo].[AWBuildVersion]

Description

Current version number of the AdventureWorks2008 sample database. yay! 

Table properties

namevalue
name[dbo].[AWBuildVersion]
createdMar 19 2009 9:09PM
modifiedMar 19 2009 9:09PM 
ansi nullson 
quoted identifieron 
row count1
Size of data8 kb
Size of indexes8 kb
Maximum size of a single row117 bytes

Columns

columndatatypelengthbytesdefaultnullsPKFKUQcomputedcomment
SystemInformationIDtinyint identity(1,1)31 no  yes    no  Primary key for AWBuildVersion records... O RLY? YA RLY! 
Database Versionnvarchar(25)25100 no      no  Version number of the database in 9.yy.mm.dd.00 format. 
VersionDatedatetime238 no      no  Date and time the record was last updated. 
ModifiedDatedatetime238(getdate())no      no  Date and time the record was last updated. 

Indexes

namedescriptioncolumncomment
PK_AWBuildVersion_SystemInformationIDclustered, unique, primary key located on PRIMARYSystemInformationIDClustered index created by a primary key constraint. Neat! 

Defaults

default namecolumncomment
DF_AWBuildVersion_ModifiedDateModifiedDateDefault constraint value of GETDATE() 

Dependency graph

DF_AWBuildVersion_ModifiedDateAWBuildVersionPK_AWBuildVersion_SystemInformationID...

Sample rows

SystemInformationIDDatabase VersionVersionDateModifiedDate
10.00.80404.00  4/4/2008 12:00:00 AM  4/4/2008 12:00:00 AM 

Code

CREATE TABLE [dbo].[AWBuildVersion](
    [SystemInformationID] [tinyint] IDENTITY(1,1) NOT NULL,
    [Database Version] [nvarchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    [VersionDate] [datetime] NOT NULL,
    [ModifiedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_AWBuildVersion_SystemInformationID] PRIMARY KEY CLUSTERED 
(
    [SystemInformationID] 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 [dbo].[AWBuildVersion] ADD  CONSTRAINT [DF_AWBuildVersion_ModifiedDate]  DEFAULT (getdate()) FOR [ModifiedDate]



Documentation generated by SqlSpec