Database reference - AdventureWorks

Database overview

Documentation

AdventureWorks Sample OLTP Database 

Documentation generated on: May 14 2009 9:44PM

Database objects

typecount
tables70
views17
indexes167
procedures9
functions11
types6
triggers12
defaults147
rules0
schemas18
assemblies1

Database users

namerole memership
dbodb_owner
guest
INFORMATION_SCHEMA
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\MSSQL10.KATMAI\MSSQL\DATA\AdventureWorks_Data.mdf  PRIMARY  174080 KB  Unlimited  16384 KB  data only 
C:\Program Files\Microsoft SQL Server\MSSQL10.KATMAI\MSSQL\DATA\AdventureWorks_Log.ldf    2048 KB  2147483648 KB  16384 KB  log only 

Database properties

namevalue
nameAdventureWorks
serverSPRING\KATMAI
size172.00 MB 
createdMar 19 2009 9:08PM
statusONLINE
ownerNT AUTHORITY\SYSTEM
versionMicrosoft SQL Server 2008 (RTM) - 10.0.1600.22 (Intel X86) Jul 9 2008 14:43:34 Copyright (c) 1988-2008 Microsoft Corporation Developer Edition on Windows NT 6.0 <X86> (Build 6001: Service Pack 1)
unallocated0.66 MB 
reserved173408 KB 
data size88752 KB 
index size78568 KB 
unused6088 KB 
compatibility level100
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
NT AUTHORITY\SYSTEMno  yes  yes  no  no  no  no  no  no  no 
NT SERVICE\MSSQL$KATMAIno  yes  yes  no  no  no  no  no  no  no 
NT SERVICE\SQLAgent$KATMAIno  yes  yes  no  no  no  no  no  no  no 
sano  yes  yes  no  no  no  no  no  no  no 
SPRING\Jesseno  yes  yes  no  no  no  no  no  no  no 

Server Properties

namevalue
NameSPRING\KATMAI
TrueNameSPRING\KATMAI
DefaultTextModeTrue
CollationSQL_Latin1_General_CP1_CI_AS
EditionDeveloper Edition
ErrorLogPathC:\Program Files\Microsoft SQL Server\MSSQL10.KATMAI\MSSQL\Log
IsCaseSensitiveFalse
IsClusteredFalse
IsFullTextInstalledTrue
IsSingleUserFalse
LanguageEnglish (United States)
MasterDBLogPathC:\Program Files\Microsoft SQL Server\MSSQL10.KATMAI\MSSQL\DATA
MasterDBPathC:\Program Files\Microsoft SQL Server\MSSQL10.KATMAI\MSSQL\DATA
MaxPrecision38
NetNameSPRING
OSVersion6.0 (6001)
PhysicalMemory3069
PlatformNT INTEL X86
Processors4
ProductMicrosoft SQL Server
ProductLevelRTM
RootDirectoryC:\Program Files\Microsoft SQL Server\MSSQL10.KATMAI\MSSQL
Version10.0.1600
VersionString10.0.1600.22
AbortOnArithmeticErrorsFalse
AbortTransactionOnErrorFalse
AnsiNullDefaultOffFalse
AnsiNullDefaultOnFalse
AnsiNullsFalse
AnsiPaddingFalse
AnsiWarningsFalse
ConcatenateNullYieldsNullFalse
CursorCloseOnCommitFalse
DisableDefaultConstraintCheckFalse
IgnoreArithmeticErrorsFalse
ImplicitTransactionsFalse
NoCountFalse
NumericRoundAbortFalse
QuotedIdentifierFalse
AuditLevelFailure
BackupDirectoryC:\Program Files\Microsoft SQL Server\MSSQL10.KATMAI\MSSQL\Backup
DefaultFile
DefaultLog
LoginModeMixed
MailProfile
NumberOfLogFiles-1
PerfMonModeNone
TapeLoadWaitTime-1

Server Configuration

namedescriptionrun valueconfig valueminimummaximumis advancedis dynamic
Ad Hoc Distributed QueriesEnable or disable Ad Hoc Distributed Queries0001TrueTrue
affinity I/O maskaffinity I/O mask00-21474836482147483647TrueFalse
affinity maskaffinity mask00-21474836482147483647TrueTrue
Agent XPsEnable or disable Agent XPs0001TrueTrue
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 server0001FalseTrue
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.6553665536-12147483647FalseTrue
max worker threadsMaximum worker threads0012832767TrueFalse
media retentionTape retention period in days000365TrueTrue
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 procedures0001TrueFalse
set working set sizeset working set size0001TrueFalse
show advanced optionsshow advanced options0001FalseTrue
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
xp_cmdshellEnable or disable command shell0001TrueTrue

Code

CREATE DATABASE [AdventureWorks] ON  PRIMARY 
( NAME = N'AdventureWorks_Data', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.KATMAI\MSSQL\DATA\AdventureWorks_Data.mdf' , SIZE = 174080KB , MAXSIZE = UNLIMITED, FILEGROWTH = 16384KB )
 LOG ON 
( NAME = N'AdventureWorks_Log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.KATMAI\MSSQL\DATA\AdventureWorks_Log.ldf' , SIZE = 2048KB , MAXSIZE = 2048GB , FILEGROWTH = 16384KB )
 COLLATE SQL_Latin1_General_CP1_CI_AS
ALTER DATABASE [AdventureWorks] SET COMPATIBILITY_LEVEL = 100
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_COMMITTED_SNAPSHOT OFF 
ALTER DATABASE [AdventureWorks] SET HONOR_BROKER_PRIORITY OFF 
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