Database reference - AdventureWorks

Database overview

Documentation

This is a sample database that ships with SQL Server 2005. It's for an imaginary company that sells bicycles. 

Documentation generated on: Oct 29 2008 10:16PM

Database objects

typecount
tables79
views18
indexes169
procedures19
functions29
types10
triggers77
defaults148
rules0
schemas19
assemblies9
synonyms2

Database users

namerole memership
dbodb_owner
dork
guest
INFORMATION_SCHEMA
SUMMER\ASPNET
sys

Roles

namerole idis application role
public00
db_owner163840
db_accessadmin163850
db_securityadmin163860
db_ddladmin163870
db_backupoperator163890
db_datareader163900
db_datawriter163910
db_denydatareader163920
db_denydatawriter163930

Database files

filefile groupsizemax sizegrowthusage
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf  PRIMARY  184256 KB  Unlimited  16384 KB  data only 
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Log.ldf    2048 KB  2147483648 KB  16384 KB  log only 

Database properties

namevalue
nameAdventureWorks
serverSUMMER
size181.94 MB 
createdJul 16 2006 1:20PM
statusONLINE
ownerSUMMER\Jesse
versionMicrosoft SQL Server 2005 - 9.00.3068.00 (Intel X86) Feb 26 2008 18:15:01 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.1 (Build 2600: Service Pack 3)
unallocated14.22 MB 
reserved169696 KB 
data size84568 KB 
index size78104 KB 
unused7024 KB 
compatibility level90
updateabilityREAD_WRITE
user accessMULTI_USER
recoverySIMPLE
collationSQL_Latin1_General_CP1_CI_AS
SQL sort order52
auto closeno
auto shrinkno
in standbyno
torn page detectionno
ansi null defaultno
ansi nullsyes
ansi paddingyes
ansi warningsyes
arithmetic abortyes
auto create statisticsyes
auto update statisticsyes
close cursors on commitno
full textyes
local cursors defaultno
null concatyes
numeric round abortno
quoted identifiersyes
recursive triggersno
publishedno
subscribedno
sync with backupno

Logins

namedeny loginhas accesssys adminsecurity adminserver adminsetup adminprocess admindisk admindb creatorbulk admin
AdventureWorksCLR_Loginno  yes  no  no  no  no  no  no  no  no 
BUILTIN\Administratorsno  yes  yes  no  no  no  no  no  no  no 
distributor_adminno  yes  yes  no  no  no  no  no  no  no 
dorkno  yes  no  no  no  no  no  no  no  no 
NT AUTHORITY\SYSTEMno  yes  yes  no  no  no  no  no  no  no 
sano  yes  yes  no  no  no  no  no  no  no 
SUMMER\ASPNETno  yes  no  no  no  no  no  no  no  no 
SUMMER\Jesseno  no  yes  no  no  no  no  no  no  no 
SUMMER\SQLServer2005MSFTEUser$SUMMER$MSSQLSERVERno  yes  no  no  no  no  no  no  no  no 
SUMMER\SQLServer2005MSSQLUser$SUMMER$MSSQLSERVERno  yes  yes  no  no  no  no  no  no  no 
SUMMER\SQLServer2005SQLAgentUser$SUMMER$MSSQLSERVERno  yes  yes  no  no  no  no  no  no  no 
UDTUtilities_Loginno  yes  no  no  no  no  no  no  no  no 

Server Properties

namevalue
Namesummer
TrueNameSUMMER
DefaultTextModeTrue
CollationSQL_Latin1_General_CP1_CS_AS
EditionStandard Edition
ErrorLogPathC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG
IsCaseSensitiveFalse
IsClusteredFalse
IsFullTextInstalledTrue
IsSingleUserFalse
LanguageEnglish (United States)
MasterDBLogPathC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
MasterDBPathC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
MaxPrecision38
NetNameSUMMER
OSVersion5.1 (2600)
PhysicalMemory2047
PlatformNT INTEL X86
Processors2
ProductMicrosoft SQL Server
ProductLevelSP2
RootDirectoryc:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL
Version9.0.3068
VersionString9.00.3068.00
AbortOnArithmeticErrorsFalse
AbortTransactionOnErrorFalse
AnsiNullDefaultOffFalse
AnsiNullDefaultOnFalse
AnsiNullsFalse
AnsiPaddingFalse
AnsiWarningsFalse
ConcatenateNullYieldsNullFalse
CursorCloseOnCommitFalse
DisableDefaultConstraintCheckFalse
IgnoreArithmeticErrorsFalse
ImplicitTransactionsFalse
NoCountFalse
NumericRoundAbortFalse
QuotedIdentifierFalse
AuditLevelFailure
BackupDirectoryC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup
DefaultFileC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data
DefaultLogC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG
LoginModeMixed
MailProfile
NumberOfLogFiles-1
PerfMonModeNone
TapeLoadWaitTime-1

Server Configuration

namedescriptionrun valueconfig valueminimummaximumis advancedis dynamic
Ad Hoc Distributed QueriesEnable or disable Ad Hoc Distributed Queries1101TrueTrue
affinity I/O maskaffinity I/O mask00-21474836482147483647TrueFalse
affinity maskaffinity mask00-21474836482147483647TrueTrue
Agent XPsEnable or disable Agent XPs1101TrueTrue
allow updatesAllow updates to system tables0001FalseTrue
awe enabledAWE enabled in the server0001TrueFalse
c2 audit modec2 audit mode0001TrueFalse
clr enabledCLR user code execution enabled in the server1101FalseTrue
cost threshold for parallelismcost threshold for parallelism55032767TrueTrue
cross db ownership chainingAllow cross db ownership chaining0001FalseTrue
cursor thresholdcursor threshold-1-1-12147483647TrueTrue
Database Mail XPsEnable or disable Database Mail XPs0001TrueTrue
default full-text languagedefault full-text language1033103302147483647TrueTrue
default languagedefault language0009999FalseTrue
fill factor (%)Default fill factor percentage000100TrueFalse
index create memory (KB)Memory for index create sorts (kBytes)007042147483647TrueTrue
lightweight poolingUser mode scheduler uses lightweight pooling0001TrueFalse
locksNumber of locks for all users0050002147483647TrueFalse
max degree of parallelismmaximum degree of parallelism00064TrueTrue
max server memory (MB)Maximum size of server memory (MB)21474836472147483647162147483647TrueTrue
max text repl size (B)Maximum size of a text field in replication.655366553602147483647FalseTrue
max worker threadsMaximum worker threads0012832767TrueFalse
media retentionTape retention period in days000365TrueFalse
min memory per query (KB)minimum memory per query (kBytes)102410245122147483647TrueTrue
min server memory (MB)Minimum size of server memory (MB)8002147483647TrueTrue
nested triggersAllow triggers to be invoked within triggers1101FalseTrue
network packet size (B)Network packet size4096409651232767TrueTrue
Ole Automation ProceduresEnable or disable Ole Automation Procedures0001TrueTrue
open objectsNumber of open database objects0002147483647TrueFalse
PH timeout (s)DB connection timeout for full-text protocol handler (s)606013600TrueTrue
precompute rankUse precomputed rank for full-text query0001TrueTrue
priority boostPriority boost0001TrueFalse
query governor cost limitMaximum estimated cost allowed by query governor0002147483647TrueTrue
query wait (s)maximum time to wait for query memory (s)-1-1-12147483647TrueTrue
recovery interval (min)Maximum recovery interval in minutes00032767TrueTrue
remote accessAllow remote access1101FalseFalse
remote admin connectionsDedicated Admin Connections are allowed from remote clients0001FalseTrue
remote login timeout (s)remote login timeout202002147483647FalseTrue
remote proc transCreate DTC transaction for remote procedures0001FalseTrue
remote query timeout (s)remote query timeout60060002147483647FalseTrue
Replication XPsEnable or disable Replication XPs0001TrueTrue
scan for startup procsscan for startup stored procedures1101TrueFalse
set working set sizeset working set size0001TrueFalse
show advanced optionsshow advanced options1101FalseTrue
SMO and DMO XPsEnable or disable SMO and DMO XPs1101TrueTrue
SQL Mail XPsEnable or disable SQL Mail XPs0001TrueTrue
transform noise wordsTransform noise words for full-text query0001TrueTrue
two digit year cutofftwo digit year cutoff2049204917539999TrueTrue
user connectionsNumber of user connections allowed00032767TrueFalse
user optionsuser options00032767FalseTrue
Web Assistant ProceduresEnable or disable Web Assistant Procedures0001TrueTrue
xp_cmdshellEnable or disable command shell0001TrueTrue

Code

CREATE DATABASE [AdventureWorks] ON  PRIMARY 
( NAME = N'AdventureWorks_Data', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf' , SIZE = 184256KB , MAXSIZE = UNLIMITED, FILEGROWTH = 16384KB )
 LOG ON 
( NAME = N'AdventureWorks_Log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Log.ldf' , SIZE = 2048KB , MAXSIZE = 2048GB , FILEGROWTH = 16384KB )
 COLLATE SQL_Latin1_General_CP1_CI_AS
EXEC dbo.sp_dbcmptlevel @dbname=N'AdventureWorks', @new_cmptlevel=90
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [AdventureWorks].[dbo].[sp_fulltext_database] @action = 'enable'
end
ALTER DATABASE [AdventureWorks] SET ANSI_NULL_DEFAULT OFF 
ALTER DATABASE [AdventureWorks] SET ANSI_NULLS ON 
ALTER DATABASE [AdventureWorks] SET ANSI_PADDING ON 
ALTER DATABASE [AdventureWorks] SET ANSI_WARNINGS ON 
ALTER DATABASE [AdventureWorks] SET ARITHABORT ON 
ALTER DATABASE [AdventureWorks] SET AUTO_CLOSE OFF 
ALTER DATABASE [AdventureWorks] SET AUTO_CREATE_STATISTICS ON 
ALTER DATABASE [AdventureWorks] SET AUTO_SHRINK OFF 
ALTER DATABASE [AdventureWorks] SET AUTO_UPDATE_STATISTICS ON 
ALTER DATABASE [AdventureWorks] SET CURSOR_CLOSE_ON_COMMIT OFF 
ALTER DATABASE [AdventureWorks] SET CURSOR_DEFAULT  GLOBAL 
ALTER DATABASE [AdventureWorks] SET CONCAT_NULL_YIELDS_NULL ON 
ALTER DATABASE [AdventureWorks] SET NUMERIC_ROUNDABORT OFF 
ALTER DATABASE [AdventureWorks] SET QUOTED_IDENTIFIER ON 
ALTER DATABASE [AdventureWorks] SET RECURSIVE_TRIGGERS OFF 
ALTER DATABASE [AdventureWorks] SET  ENABLE_BROKER 
ALTER DATABASE [AdventureWorks] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
ALTER DATABASE [AdventureWorks] SET DATE_CORRELATION_OPTIMIZATION OFF 
ALTER DATABASE [AdventureWorks] SET TRUSTWORTHY OFF 
ALTER DATABASE [AdventureWorks] SET ALLOW_SNAPSHOT_ISOLATION OFF 
ALTER DATABASE [AdventureWorks] SET PARAMETERIZATION SIMPLE 
ALTER DATABASE [AdventureWorks] SET  READ_WRITE 
ALTER DATABASE [AdventureWorks] SET RECOVERY SIMPLE 
ALTER DATABASE [AdventureWorks] SET  MULTI_USER 
ALTER DATABASE [AdventureWorks] SET PAGE_VERIFY CHECKSUM  
ALTER DATABASE [AdventureWorks] SET DB_CHAINING OFF 



Documentation generated by SqlSpec