You are on page 1of 151

Date 08/05/2014 17:09:22

Author CENTREL Solutions

Version 1.03

Product XIA Configuration Server [6.0.0.25996]


Page 4 of 151
Description SQL 2012 Instance

Item Name AdventureWorks Sample

Item ID 2688

Primary Owner Name DBA Team

Primary Owner Contact dbateam@demonstration.int

Scanned on Date 08 May 2014

Client Version 6.0.0

Item ID Name Type Relationship Type

2689 DEMO-SQL2012 Windows Server Is Hosted On

1000 Demonstration Inc Container Contained Within

Internal AdventureWorks2012 Database Hosts Database

Internal master Database Hosts Database

Internal model Database Hosts Database

Internal msdb Database Hosts Database

Internal tempdb Database Hosts Database

Page 5 of 151
Page 6 of 151
General

Name AdventureWorks Sample

Product Microsoft SQL Server

Product Level RTM

Edition Enterprise Edition (64-bit)

OS Version String 6.1 (7601)

Platform NT x64

Version 11.0.2100.60

Version Name SQL 2012

Language English (United States)

Processors 1

Collation Latin1_General_CI_AS

Clustered False

Root Directory C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL

Memory

AWE Enabled Unknown

Minimum Server Memory 0MB

Maximum Server Memory 2147483647MB

Index Creation Memory 0KB

Minimum Memory Per Query 1024KB

Processors

Maximum Worker Threads 0

Boost SQL Server Priority False

Security

Authentication Mode Windows Authentication Mode

Audit Level None

Proxy Account Enabled False

Proxy Account Name

C2 Audit Mode False

Cross Database Ownership Chaining False

XP Command Shell Enabled False

Page 7 of 151
Connections

Maximum Concurrent Connections 0

Use Query Governor False

Query Governor Cost Limit 0

Allow Remote Connections True

Remote Query Timeout 600 seconds

Named Pipes Enabled False

TCP Enabled True

Database Settings

Fill Factor 0

Default Backup Media Retention 0 days

Master Database Path C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA

Master Database Log Path C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA

Advanced

Nested Triggers True

Cursor Threshold -1

Default Full Text Language 1033

Default Language 0

Replication Max Text Size 65536

Scan For Startup Procedures False

Two Digit Year Cutoff 2049

Network Packet Size 4096 bytes

Remote Login Timeout 10 seconds

Cost Threshold For Parallelism 5

Locks 0

Max Degree Of Parallelism 0

Query Wait -1

Page 8 of 151
Name Owner Collation Compatibility Level

AdventureWorks2012 DEMO-SQL2012\Administrator SQL_Latin1_General_CP1_CI_AS SQL 2012 (110)

master sa Latin1_General_CI_AS SQL 2012 (110)

model sa Latin1_General_CI_AS SQL 2012 (110)

msdb sa Latin1_General_CI_AS SQL 2012 (110)

tempdb sa Latin1_General_CI_AS SQL 2012 (110)

Page 9 of 151
General

Name AdventureWorks2012

Description AdventureWorks 2012 Sample OLTP Database

Last Backup Date {Not Configured}

Last Log Backup Date {Not Configured}

Owner DEMO-SQL2012\Administrator

Creation Date 08/05/2014 16:06:36

Read Only False

Size 189.49MB

Space Available 0.00MB

Users dbo
guest
INFORMATION_SCHEMA
sys

Full Text Enabled True

Collation SQL_Latin1_General_CP1_CI_AS

Logical Name Type File Group Autogrowth File Name

AdventureWorks2012_Data Data PRIMARY By 16384 KB C:\Data\AdventureWorks2012_Data.mdf

AdventureWorks2012_log.ldf Log Not Applicable By 10 Percent C:\Data\AdventureWorks2012_log.ldf

Page 10 of 151
Options

Collation SQL_Latin1_General_CP1_CI_AS

Recovery Model Simple

Compatibility Level SQL 2012 (110)

Other Options

Auto Close False

Auto Create Statistics True

Auto Shrink False

Auto Update Statistics True

Close Cursors On Commit False

ANSI NULL Default False

ANSI NULLS Enabled True

ANSI Padding Enabled True

ANSI Warnings Enabled True

Arithmetic Abort Enabled True

Concatenate Null Yields Null True

Database Ownership Chaining False

Numeric Round Abort Enabled False

Quoted Identifiers Enabled True

Recursive Triggers Enabled False

Page Verify Checksum

Read Only False

Status Normal

User Access Multiple

Date Correlation Optimization False

Parameterization Simple

Trustworthy False

Auto Update Statistics Async False

Extended Properties

Property Name Value

MS_Description AdventureWorks 2012 Sample OLTP Database

Page 11 of 151
dbo

Name dbo

Creation Date 08/04/2003 09:10:42

Default Schema dbo

Login

Database Roles db_owner

guest

Name guest

Creation Date 08/04/2003 09:10:42

Default Schema guest

Login No Login

Database Roles None

INFORMATION_SCHEMA

Name INFORMATION_SCHEMA

Creation Date 13/04/2009 12:59:11

Default Schema

Login No Login

Database Roles None

sys

Name sys

Creation Date 13/04/2009 12:59:11

Default Schema

Login No Login

Database Roles None

Page 12 of 151
Page 13 of 151
Name Schema Description

AWBuildVersion dbo Current version number of the AdventureWorks 2012 sample database.

DatabaseLog dbo Audit table tracking all DDL changes made to the AdventureWorks
database. Data is captured by the database trigger
ddlDatabaseTriggerLog.

ErrorLog dbo Audit table tracking errors in the the AdventureWorks database that are
caught by the CATCH block of a TRY...CATCH construct. Data is
inserted by stored procedure dbo.uspLogError when it is executed from
inside the CATCH block of a TRY...CATCH construct.

Department HumanResources Lookup table containing the departments within the Adventure Works
Cycles company.

Employee HumanResources Employee information such as salary, department, and title.

EmployeeDepartmentHistory HumanResources Employee department transfers.

EmployeePayHistory HumanResources Employee pay history.

JobCandidate HumanResources Résumés submitted to Human Resources by job applicants.

Shift HumanResources Work shift lookup table.

Address Person Street address information for customers, employees, and vendors.

AddressType Person Types of addresses stored in the Address table.

BusinessEntity Person Source of the ID that connects vendors, customers, and employees with
address and contact information.

BusinessEntityAddress Person Cross-reference table mapping customers, vendors, and employees to


their addresses.

BusinessEntityContact Person Cross-reference table mapping stores, vendors, and employees to


people

ContactType Person Lookup table containing the types of business entity contacts.

CountryRegion Person Lookup table containing the ISO standard codes for countries and
regions.

EmailAddress Person Where to send a person email.

Password Person One way hashed authentication information

Person Person Human beings involved with AdventureWorks: employees, customer


contacts, and vendor contacts.

PersonPhone Person Telephone number and type of a person.

PhoneNumberType Person Type of phone number of a person.

StateProvince Person State and province lookup table.

BillOfMaterials Production Items required to make bicycles and bicycle subassemblies. It identifies
the heirarchical relationship between a parent product and its
components.

Culture Production Lookup table containing the languages in which some AdventureWorks
data is stored.

Document Production Product maintenance documents.

Illustration Production Bicycle assembly diagrams.

Location Production Product inventory and manufacturing locations.

Product Production Products sold or used in the manfacturing of sold products.

ProductCategory Production High-level product categorization.

ProductCostHistory Production Changes in the cost of a product over time.

ProductDescription Production Product descriptions in several languages.

ProductDocument Production Cross-reference table mapping products to related product documents.

Page 14 of 151
ProductInventory Production Product inventory information.

ProductListPriceHistory Production Changes in the list price of a product over time.

ProductModel Production Product model classification.

ProductModelIllustration Production Cross-reference table mapping product models and illustrations.

ProductModelProductDescriptionCulture Production Cross-reference table mapping product descriptions and the language
the description is written in.

ProductPhoto Production Product images.

ProductProductPhoto Production Cross-reference table mapping products and product photos.

ProductReview Production Customer reviews of products they have purchased.

ProductSubcategory Production Product subcategories. See ProductCategory table.

ScrapReason Production Manufacturing failure reasons lookup table.

TransactionHistory Production Record of each purchase order, sales order, or work order transaction
year to date.

TransactionHistoryArchive Production Transactions for previous years.

UnitMeasure Production Unit of measure lookup table.

WorkOrder Production Manufacturing work orders.

WorkOrderRouting Production Work order details.

ProductVendor Purchasing Cross-reference table mapping vendors with the products they supply.

PurchaseOrderDetail Purchasing Individual products associated with a specific purchase order. See
PurchaseOrderHeader.

PurchaseOrderHeader Purchasing General purchase order information. See PurchaseOrderDetail.

ShipMethod Purchasing Shipping company lookup table.

Vendor Purchasing Companies from whom Adventure Works Cycles purchases parts or
other goods.

CountryRegionCurrency Sales Cross-reference table mapping ISO currency codes to a country or


region.

CreditCard Sales Customer credit card information.

Currency Sales Lookup table containing standard ISO currencies.

CurrencyRate Sales Currency exchange rates.

Customer Sales Current customer information. Also see the Person and Store tables.

PersonCreditCard Sales Cross-reference table mapping people to their credit card information in
the CreditCard table.

SalesOrderDetail Sales Individual products associated with a specific sales order. See
SalesOrderHeader.

SalesOrderHeader Sales General sales order information.

SalesOrderHeaderSalesReason Sales Cross-reference table mapping sales orders to sales reason codes.

SalesPerson Sales Sales representative current information.

SalesPersonQuotaHistory Sales Sales performance tracking.

SalesReason Sales Lookup table of customer purchase reasons.

SalesTaxRate Sales Tax rate lookup table.

SalesTerritory Sales Sales territory lookup table.

SalesTerritoryHistory Sales Sales representative transfers to other sales territories.

ShoppingCartItem Sales Contains online customer orders until the order is submitted or
cancelled.

SpecialOffer Sales Sale discounts lookup table.

Page 15 of 151
SpecialOfferProduct Sales Cross-reference table mapping products to special offer discounts.

Store Sales Customers (resellers) of Adventure Works products.

Page 16 of 151
Table Details

Name AWBuildVersion

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema dbo

Table Columns

Name Data Type Allow Default Description


Nulls Value

SystemInformationID tinyint False Primary key for AWBuildVersion records.

Database Version nvarchar (25) False Version number of the database in 9.yy.mm.dd.00 format.

VersionDate datetime False Date and time the record was last updated.

ModifiedDate datetime False Date and time the record was last updated.

Page 17 of 151
Table Details

Name DatabaseLog

Date Created 14/03/2012 13:14:18

Owner dbo

Quoted Identifiers True

Replicated False

Schema dbo

Table Columns

Name Data Type Allow Default Description


Nulls Value

DatabaseLogID int False Primary key for DatabaseLog records.

PostTime datetime False The date and time the DDL change occurred.

DatabaseUser sysname False The user who implemented the DDL change.

Event sysname False The type of DDL statement that was executed.

Schema sysname True The schema to which the changed object belongs.

Object sysname True The object that was changed by the DDL statment.

TSQL nvarchar(MAX) False The exact Transact-SQL statement that was executed.

XmlEvent xml False The raw XML data generated by database trigger.

Page 18 of 151
Table Details

Name ErrorLog

Date Created 14/03/2012 13:14:18

Owner dbo

Quoted Identifiers True

Replicated False

Schema dbo

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ErrorLogID int False Primary key for ErrorLog records.

ErrorTime datetime False The date and time at which the error occurred.

UserName sysname False The user who executed the batch in which the error occurred.

ErrorNumber int False The error number of the error that occurred.

ErrorSeverity int True The severity of the error that occurred.

ErrorState int True The state number of the error that occurred.

ErrorProcedure nvarchar True The name of the stored procedure or trigger where the error occurred.
(126)

ErrorLine int True The line number at which the error occurred.

ErrorMessage nvarchar False The message text of the error that occurred.
(4000)

Page 19 of 151
Table Details

Name Department

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema HumanResources

Table Columns

Name Data Type Allow Default Description


Nulls Value

DepartmentID smallint False Primary key for Department records.

Name userdefineddatatype False Name of the department.

GroupName userdefineddatatype False Name of the group to which the department belongs.

ModifiedDate datetime False Date and time the record was last updated.

Page 20 of 151
Table Details

Name Employee

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema HumanResources

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key for Employee records. Foreign key to
BusinessEntity.BusinessEntityID.

NationalIDNumber nvarchar (15) False Unique national identification number such as a social security
number.

LoginID nvarchar (256) False Network login.

OrganizationNode hierarchyid True Where the employee is located in corporate hierarchy.

OrganizationLevel smallint True The depth of the employee in the corporate hierarchy.

JobTitle nvarchar (50) False Work title such as Buyer or Sales Representative.

BirthDate date False Date of birth.

MaritalStatus nchar (1) False M = Married, S = Single

Gender nchar (1) False M = Male, F = Female

HireDate date False Employee hired on this date.

SalariedFlag userdefineddatatype False Job classification. 0 = Hourly, not exempt from collective bargaining. 1
= Salaried, exempt from collective bargaining.

VacationHours smallint False Number of available vacation hours.

SickLeaveHours smallint False Number of available sick leave hours.

CurrentFlag userdefineddatatype False 0 = Inactive, 1 = Active

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 21 of 151
Page 22 of 151
Table Details

Name EmployeeDepartmentHistory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema HumanResources

Table Columns

Name Data Allow Default Description


Type Value
Nulls

BusinessEntityID int False Employee identification number. Foreign key to Employee.BusinessEntityID.

DepartmentID smallint False Department in which the employee worked including currently. Foreign key to
Department.DepartmentID.

ShiftID tinyint False Identifies which 8-hour shift the employee works. Foreign key to Shift.Shift.ID.

StartDate date False Date the employee started work in the department.

EndDate date True Date the employee left the department. NULL = Current department.

ModifiedDate datetime False Date and time the record was last updated.

Page 23 of 151
Table Details

Name EmployeePayHistory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema HumanResources

Table Columns

Name Data Allow Default Description


Type Value
Nulls

BusinessEntityID int False Employee identification number. Foreign key to Employee.BusinessEntityID.

RateChangeDate datetime False Date the change in pay is effective

Rate money False Salary hourly rate.

PayFrequency tinyint False 1 = Salary received monthly, 2 = Salary received biweekly

ModifiedDate datetime False Date and time the record was last updated.

Page 24 of 151
Table Details

Name JobCandidate

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema HumanResources

Table Columns

Name Data Allow Default Description


Type Value
Nulls

JobCandidateID int False Primary key for JobCandidate records.

BusinessEntityID int True Employee identification number if applicant was hired. Foreign key to
Employee.BusinessEntityID.

Resume xml True Résumé in XML format.

ModifiedDate datetime False Date and time the record was last updated.

Page 25 of 151
Table Details

Name Shift

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema HumanResources

Table Columns

Name Data Type Allow Default Description


Nulls Value

ShiftID tinyint False Primary key for Shift records.

Name userdefineddatatype False Shift description.

StartTime time (7) False Shift start time.

EndTime time (7) False Shift end time.

ModifiedDate datetime False Date and time the record was last updated.

Page 26 of 151
Table Details

Name Address

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

AddressID int False Primary key for Address records.

AddressLine1 nvarchar (60) False First street address line.

AddressLine2 nvarchar (60) True Second street address line.

City nvarchar (30) False Name of the city.

StateProvinceID int False Unique identification number for the state or province. Foreign key to
StateProvince table.

PostalCode nvarchar (15) False Postal code for the street address.

SpatialLocation geography True Latitude and longitude of this address.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 27 of 151
Table Details

Name AddressType

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

AddressTypeID int False Primary key for AddressType records.

Name userdefineddatatype False Address type description. For example, Billing, Home, or Shipping.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 28 of 151
Table Details

Name BusinessEntity

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key for all customers, vendors, and employees.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 29 of 151
Table Details

Name BusinessEntityAddress

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key. Foreign key to BusinessEntity.BusinessEntityID.

AddressID int False Primary key. Foreign key to Address.AddressID.

AddressTypeID int False Primary key. Foreign key to AddressType.AddressTypeID.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 30 of 151
Table Details

Name BusinessEntityContact

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key. Foreign key to BusinessEntity.BusinessEntityID.

PersonID int False Primary key. Foreign key to Person.BusinessEntityID.

ContactTypeID int False Primary key. Foreign key to ContactType.ContactTypeID.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 31 of 151
Table Details

Name ContactType

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Nulls Value

ContactTypeID int False Primary key for ContactType records.

Name userdefineddatatype False Contact type description.

ModifiedDate datetime False Date and time the record was last updated.

Page 32 of 151
Table Details

Name CountryRegion

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Nulls Value

CountryRegionCode nvarchar (3) False ISO standard code for countries and regions.

Name userdefineddatatype False Country or region name.

ModifiedDate datetime False Date and time the record was last updated.

Page 33 of 151
Table Details

Name EmailAddress

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key. Person associated with this email address. Foreign key to
Person.BusinessEntityID

EmailAddressID int False Primary key. ID of this email address.

EmailAddress nvarchar (50) True E-mail address for the person.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 34 of 151
Table Details

Name Password

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False

PasswordHash varchar (128) False Password for the e-mail account.

PasswordSalt varchar (10) False Random value concatenated with the password string before the password is
hashed.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 35 of 151
Table Details

Name Person

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key for Person records.

PersonType nchar (2) False Primary type of person: SC = Store Contact, IN = Individual (retail)
customer, SP = Sales person, EM = Employee (non-sales), VC =
Vendor contact, GC = General contact

NameStyle userdefineddatatype False 0 = The data in FirstName and LastName are stored in western
style (first name, last name) order. 1 = Eastern style (last name,
first name) order.

Title nvarchar (8) True A courtesy title. For example, Mr. or Ms.

FirstName userdefineddatatype False First name of the person.

MiddleName userdefineddatatype True Middle name or middle initial of the person.

LastName userdefineddatatype False Last name of the person.

Suffix nvarchar (10) True Surname suffix. For example, Sr. or Jr.

EmailPromotion int False 0 = Contact does not wish to receive e-mail promotions, 1 = Contact
does wish to receive e-mail promotions from AdventureWorks, 2 =
Contact does wish to receive e-mail promotions from
AdventureWorks and selected partners.

AdditionalContactInfo xml True Additional contact information about the person stored in xml
format.

Demographics xml True Personal information such as hobbies, and income collected from
online shoppers. Used for sales analysis.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 36 of 151
Page 37 of 151
Table Details

Name PersonPhone

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Business entity identification number. Foreign key to


Person.BusinessEntityID.

PhoneNumber userdefineddatatype False Telephone number identification number.

PhoneNumberTypeID int False Kind of phone number. Foreign key to


PhoneNumberType.PhoneNumberTypeID.

ModifiedDate datetime False Date and time the record was last updated.

Page 38 of 151
Table Details

Name PhoneNumberType

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Nulls Value

PhoneNumberTypeID int False Primary key for telephone number type records.

Name userdefineddatatype False Name of the telephone number type

ModifiedDate datetime False Date and time the record was last updated.

Page 39 of 151
Table Details

Name StateProvince

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Person

Table Columns

Name Data Type Allow Default Description


Value
Nulls

StateProvinceID int False Primary key for StateProvince records.

StateProvinceCode nchar (3) False ISO standard state or province code.

CountryRegionCode nvarchar (3) False ISO standard country or region code. Foreign key to
CountryRegion.CountryRegionCode.

IsOnlyStateProvinceFlag userdefineddatatype False 0 = StateProvinceCode exists. 1 = StateProvinceCode


unavailable, using CountryRegionCode.

Name userdefineddatatype False State or province description.

TerritoryID int False ID of the territory in which the state or province is located.
Foreign key to SalesTerritory.SalesTerritoryID.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 40 of 151
Table Details

Name BillOfMaterials

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Allow Default Description


Type Value
Nulls

BillOfMaterialsID int False Primary key for BillOfMaterials records.

ProductAssemblyID int True Parent product identification number. Foreign key to Product.ProductID.

ComponentID int False Component identification number. Foreign key to Product.ProductID.

StartDate datetime False Date the component started being used in the assembly item.

EndDate datetime True Date the component stopped being used in the assembly item.

UnitMeasureCode nchar (3) False Standard code identifying the unit of measure for the quantity.

BOMLevel smallint False Indicates the depth the component is from its parent (AssemblyID).

PerAssemblyQty decimal False Quantity of the component needed to create the assembly.
(8,2)

ModifiedDate datetime False Date and time the record was last updated.

Page 41 of 151
Table Details

Name Culture

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

CultureID nchar (6) False Primary key for Culture records.

Name userdefineddatatype False Culture description.

ModifiedDate datetime False Date and time the record was last updated.

Page 42 of 151
Table Details

Name Document

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

DocumentNode hierarchyid False Primary key for Document records.

DocumentLevel smallint True Depth in the document hierarchy.

Title nvarchar (50) False Title of the document.

Owner int False Employee who controls the document. Foreign key to
Employee.BusinessEntityID

FolderFlag bit False 0 = This is a folder, 1 = This is a document.

FileName nvarchar (400) False File name of the document

FileExtension nvarchar (8) False File extension indicating the document type. For example, .doc or .txt.

Revision nchar (5) False Revision number of the document.

ChangeNumber int False Engineering change approval number.

Status tinyint False 1 = Pending approval, 2 = Approved, 3 = Obsolete

DocumentSummary nvarchar(MAX) True Document abstract.

Document varbinary(MAX) True Complete document.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Required for
FileStream.

ModifiedDate datetime False Date and time the record was last updated.

Page 43 of 151
Page 44 of 151
Table Details

Name Illustration

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

IllustrationID int False Primary key for Illustration records.

Diagram xml True Illustrations used in manufacturing instructions. Stored as XML.

ModifiedDate datetime False Date and time the record was last updated.

Page 45 of 151
Table Details

Name Location

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

LocationID smallint False Primary key for Location records.

Name userdefineddatatype False Location description.

CostRate smallmoney False Standard hourly cost of the manufacturing location.

Availability decimal (8,2) False Work capacity (in hours) of the manufacturing location.

ModifiedDate datetime False Date and time the record was last updated.

Page 46 of 151
Table Details

Name Product

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductID int False Primary key for Product records.

Name userdefineddatatype False Name of the product.

ProductNumber nvarchar (25) False Unique product identification number.

MakeFlag userdefineddatatype False 0 = Product is purchased, 1 = Product is manufactured


in-house.

FinishedGoodsFlag userdefineddatatype False 0 = Product is not a salable item. 1 = Product is salable.

Color nvarchar (15) True Product color.

SafetyStockLevel smallint False Minimum inventory quantity.

ReorderPoint smallint False Inventory level that triggers a purchase order or work order.

StandardCost money False Standard cost of the product.

ListPrice money False Selling price.

Size nvarchar (5) True Product size.

SizeUnitMeasureCode nchar (3) True Unit of measure for Size column.

WeightUnitMeasureCode nchar (3) True Unit of measure for Weight column.

Weight decimal (8,2) True Product weight.

DaysToManufacture int False Number of days required to manufacture the product.

ProductLine nchar (2) True R = Road, M = Mountain, T = Touring, S = Standard

Class nchar (2) True H = High, M = Medium, L = Low

Style nchar (2) True W = Womens, M = Mens, U = Universal

ProductSubcategoryID int True Product is a member of this product subcategory. Foreign key to
ProductSubCategory.ProductSubCategoryID.

ProductModelID int True Product is a member of this product model. Foreign key to
ProductModel.ProductModelID.

SellStartDate datetime False Date the product was available for sale.

SellEndDate datetime True Date the product was no longer available for sale.

DiscontinuedDate datetime True Date the product was discontinued.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 47 of 151
Page 48 of 151
Table Details

Name ProductCategory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductCategoryID int False Primary key for ProductCategory records.

Name userdefineddatatype False Category description.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 49 of 151
Table Details

Name ProductCostHistory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

ProductID int False Product identification number. Foreign key to Product.ProductID

StartDate datetime False Product cost start date.

EndDate datetime True Product cost end date.

StandardCost money False Standard cost of the product.

ModifiedDate datetime False Date and time the record was last updated.

Page 50 of 151
Table Details

Name ProductDescription

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductDescriptionID int False Primary key for ProductDescription records.

Description nvarchar (400) False Description of the product.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support
a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 51 of 151
Table Details

Name ProductDocument

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductID int False Product identification number. Foreign key to Product.ProductID.

DocumentNode hierarchyid False Document identification number. Foreign key to Document.DocumentNode.

ModifiedDate datetime False Date and time the record was last updated.

Page 52 of 151
Table Details

Name ProductInventory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductID int False Product identification number. Foreign key to Product.ProductID.

LocationID smallint False Inventory location identification number. Foreign key to Location.LocationID.

Shelf nvarchar (10) False Storage compartment within an inventory location.

Bin tinyint False Storage container on a shelf in an inventory location.

Quantity smallint False Quantity of products in the inventory location.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a merge
replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 53 of 151
Table Details

Name ProductListPriceHistory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

ProductID int False Product identification number. Foreign key to Product.ProductID

StartDate datetime False List price start date.

EndDate datetime True List price end date

ListPrice money False Product list price.

ModifiedDate datetime False Date and time the record was last updated.

Page 54 of 151
Table Details

Name ProductModel

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductModelID int False Primary key for ProductModel records.

Name userdefineddatatype False Product model description.

CatalogDescription xml True Detailed product catalog information in xml format.

Instructions xml True Manufacturing instructions in xml format.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 55 of 151
Table Details

Name ProductModelIllustration

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

ProductModelID int False Primary key. Foreign key to ProductModel.ProductModelID.

IllustrationID int False Primary key. Foreign key to Illustration.IllustrationID.

ModifiedDate datetime False Date and time the record was last updated.

Page 56 of 151
Table Details

Name ProductModelProductDescriptionCulture

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

ProductModelID int False Primary key. Foreign key to ProductModel.ProductModelID.

ProductDescriptionID int False Primary key. Foreign key to ProductDescription.ProductDescriptionID.

CultureID nchar (6) False Culture identification number. Foreign key to Culture.CultureID.

ModifiedDate datetime False Date and time the record was last updated.

Page 57 of 151
Table Details

Name ProductPhoto

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

ProductPhotoID int False Primary key for ProductPhoto records.

ThumbNailPhoto varbinary(MAX) True Small image of the product.

ThumbnailPhotoFileName nvarchar (50) True Small image file name.

LargePhoto varbinary(MAX) True Large image of the product.

LargePhotoFileName nvarchar (50) True Large image file name.

ModifiedDate datetime False Date and time the record was last updated.

Page 58 of 151
Table Details

Name ProductProductPhoto

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductID int False Product identification number. Foreign key to Product.ProductID.

ProductPhotoID int False Product photo identification number. Foreign key to


ProductPhoto.ProductPhotoID.

Primary userdefineddatatype False 0 = Photo is not the principal image. 1 = Photo is the principal image.

ModifiedDate datetime False Date and time the record was last updated.

Page 59 of 151
Table Details

Name ProductReview

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductReviewID int False Primary key for ProductReview records.

ProductID int False Product identification number. Foreign key to Product.ProductID.

ReviewerName userdefineddatatype False Name of the reviewer.

ReviewDate datetime False Date review was submitted.

EmailAddress nvarchar (50) False Reviewer's e-mail address.

Rating int False Product rating given by the reviewer. Scale is 1 to 5 with 5 as the
highest rating.

Comments nvarchar (3850) True Reviewer's comments

ModifiedDate datetime False Date and time the record was last updated.

Page 60 of 151
Table Details

Name ProductSubcategory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ProductSubcategoryID int False Primary key for ProductSubcategory records.

ProductCategoryID int False Product category identification number. Foreign key to


ProductCategory.ProductCategoryID.

Name userdefineddatatype False Subcategory description.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 61 of 151
Table Details

Name ScrapReason

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

ScrapReasonID smallint False Primary key for ScrapReason records.

Name userdefineddatatype False Failure description.

ModifiedDate datetime False Date and time the record was last updated.

Page 62 of 151
Table Details

Name TransactionHistory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Allow Default Description


Type Value
Nulls

TransactionID int False Primary key for TransactionHistory records.

ProductID int False Product identification number. Foreign key to Product.ProductID.

ReferenceOrderID int False Purchase order, sales order, or work order identification number.

ReferenceOrderLineID int False Line number associated with the purchase order, sales order, or work order.

TransactionDate datetime False Date and time of the transaction.

TransactionType nchar False W = WorkOrder, S = SalesOrder, P = PurchaseOrder


(1)

Quantity int False Product quantity.

ActualCost money False Product cost.

ModifiedDate datetime False Date and time the record was last updated.

Page 63 of 151
Table Details

Name TransactionHistoryArchive

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Allow Default Description


Type Value
Nulls

TransactionID int False Primary key for TransactionHistoryArchive records.

ProductID int False Product identification number. Foreign key to Product.ProductID.

ReferenceOrderID int False Purchase order, sales order, or work order identification number.

ReferenceOrderLineID int False Line number associated with the purchase order, sales order, or work order.

TransactionDate datetime False Date and time of the transaction.

TransactionType nchar False W = Work Order, S = Sales Order, P = Purchase Order


(1)

Quantity int False Product quantity.

ActualCost money False Product cost.

ModifiedDate datetime False Date and time the record was last updated.

Page 64 of 151
Table Details

Name UnitMeasure

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

UnitMeasureCode nchar (3) False Primary key.

Name userdefineddatatype False Unit of measure description.

ModifiedDate datetime False Date and time the record was last updated.

Page 65 of 151
Table Details

Name WorkOrder

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Type Allow Default Description


Nulls Value

WorkOrderID int False Primary key for WorkOrder records.

ProductID int False Product identification number. Foreign key to Product.ProductID.

OrderQty int False Product quantity to build.

StockedQty int False Quantity built and put in inventory.

ScrappedQty smallint False Quantity that failed inspection.

StartDate datetime False Work order start date.

EndDate datetime True Work order end date.

DueDate datetime False Work order due date.

ScrapReasonID smallint True Reason for inspection failure.

ModifiedDate datetime False Date and time the record was last updated.

Page 66 of 151
Table Details

Name WorkOrderRouting

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Production

Table Columns

Name Data Allow Default Description


Type Value
Nulls

WorkOrderID int False Primary key. Foreign key to WorkOrder.WorkOrderID.

ProductID int False Primary key. Foreign key to Product.ProductID.

OperationSequence smallint False Primary key. Indicates the manufacturing process sequence.

LocationID smallint False Manufacturing location where the part is processed. Foreign key to
Location.LocationID.

ScheduledStartDate datetime False Planned manufacturing start date.

ScheduledEndDate datetime False Planned manufacturing end date.

ActualStartDate datetime True Actual start date.

ActualEndDate datetime True Actual end date.

ActualResourceHrs decimal True Number of manufacturing hours used.


(9,4)

PlannedCost money False Estimated manufacturing cost.

ActualCost money True Actual manufacturing cost.

ModifiedDate datetime False Date and time the record was last updated.

Page 67 of 151
Table Details

Name ProductVendor

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Purchasing

Table Columns

Name Data Allow Default Description


Type Value
Nulls

ProductID int False Primary key. Foreign key to Product.ProductID.

BusinessEntityID int False Primary key. Foreign key to Vendor.BusinessEntityID.

AverageLeadTime int False The average span of time (in days) between placing an order with the vendor and
receiving the purchased product.

StandardPrice money False The vendor's usual selling price.

LastReceiptCost money True The selling price when last purchased.

LastReceiptDate datetime True Date the product was last received by the vendor.

MinOrderQty int False The maximum quantity that should be ordered.

MaxOrderQty int False The minimum quantity that should be ordered.

OnOrderQty int True The quantity currently on order.

UnitMeasureCode nchar False The product's unit of measure.


(3)

ModifiedDate datetime False Date and time the record was last updated.

Page 68 of 151
Table Details

Name PurchaseOrderDetail

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Purchasing

Table Columns

Name Data Allow Default Description


Type Value
Nulls

PurchaseOrderID int False Primary key. Foreign key to PurchaseOrderHeader.PurchaseOrderID.

PurchaseOrderDetailID int False Primary key. One line number per purchased product.

DueDate datetime False Date the product is expected to be received.

OrderQty smallint False Quantity ordered.

ProductID int False Product identification number. Foreign key to Product.ProductID.

UnitPrice money False Vendor's selling price of a single product.

LineTotal money False Per product subtotal. Computed as OrderQty * UnitPrice.

ReceivedQty decimal False Quantity actually received from the vendor.


(8,2)

RejectedQty decimal False Quantity rejected during inspection.


(8,2)

StockedQty decimal False Quantity accepted into inventory. Computed as ReceivedQty - RejectedQty.
(9,2)

ModifiedDate datetime False Date and time the record was last updated.

Page 69 of 151
Table Details

Name PurchaseOrderHeader

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Purchasing

Table Columns

Name Data Allow Default Description


Type Value
Nulls

PurchaseOrderID int False Primary key.

RevisionNumber tinyint False Incremental number to track changes to the purchase order over time.

Status tinyint False Order current status. 1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete

EmployeeID int False Employee who created the purchase order. Foreign key to
Employee.BusinessEntityID.

VendorID int False Vendor with whom the purchase order is placed. Foreign key to
Vendor.BusinessEntityID.

ShipMethodID int False Shipping method. Foreign key to ShipMethod.ShipMethodID.

OrderDate datetime False Purchase order creation date.

ShipDate datetime True Estimated shipment date from the vendor.

SubTotal money False Purchase order subtotal. Computed as SUM(PurchaseOrderDetail.LineTotal)for the


appropriate PurchaseOrderID.

TaxAmt money False Tax amount.

Freight money False Shipping cost.

TotalDue money False Total due to vendor. Computed as Subtotal + TaxAmt + Freight.

ModifiedDate datetime False Date and time the record was last updated.

Page 70 of 151
Page 71 of 151
Table Details

Name ShipMethod

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Purchasing

Table Columns

Name Data Type Allow Default Description


Value
Nulls

ShipMethodID int False Primary key for ShipMethod records.

Name userdefineddatatype False Shipping company name.

ShipBase money False Minimum shipping charge.

ShipRate money False Shipping charge per pound.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 72 of 151
Table Details

Name Vendor

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Purchasing

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key for Vendor records. Foreign key to
BusinessEntity.BusinessEntityID

AccountNumber userdefineddatatype False Vendor account (identification) number.

Name userdefineddatatype False Company name.

CreditRating tinyint False 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average,


5 = Below average

PreferredVendorStatus userdefineddatatype False 0 = Do not use if another vendor is available. 1 = Preferred


over other vendors supplying the same product.

ActiveFlag userdefineddatatype False 0 = Vendor no longer used. 1 = Vendor is actively used.

PurchasingWebServiceURL nvarchar (1024) True Vendor URL.

ModifiedDate datetime False Date and time the record was last updated.

Page 73 of 151
Table Details

Name CountryRegionCurrency

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Allow Default Description


Type Value
Nulls

CountryRegionCode nvarchar False ISO code for countries and regions. Foreign key to
(3) CountryRegion.CountryRegionCode.

CurrencyCode nchar False ISO standard currency code. Foreign key to Currency.CurrencyCode.
(3)

ModifiedDate datetime False Date and time the record was last updated.

Page 74 of 151
Table Details

Name CreditCard

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Nulls Default Description


Value

CreditCardID int False Primary key for CreditCard records.

CardType nvarchar (50) False Credit card name.

CardNumber nvarchar (25) False Credit card number.

ExpMonth tinyint False Credit card expiration month.

ExpYear smallint False Credit card expiration year.

ModifiedDate datetime False Date and time the record was last updated.

Page 75 of 151
Table Details

Name Currency

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Nulls Value

CurrencyCode nchar (3) False The ISO code for the Currency.

Name userdefineddatatype False Currency name.

ModifiedDate datetime False Date and time the record was last updated.

Page 76 of 151
Table Details

Name CurrencyRate

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Nulls Value

CurrencyRateID int False Primary key for CurrencyRate records.

CurrencyRateDate datetime False Date and time the exchange rate was obtained.

FromCurrencyCode nchar (3) False Exchange rate was converted from this currency code.

ToCurrencyCode nchar (3) False Exchange rate was converted to this currency code.

AverageRate money False Average exchange rate for the day.

EndOfDayRate money False Final exchange rate for the day.

ModifiedDate datetime False Date and time the record was last updated.

Page 77 of 151
Table Details

Name Customer

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

CustomerID int False Primary key.

PersonID int True Foreign key to Person.BusinessEntityID

StoreID int True Foreign key to Store.BusinessEntityID

TerritoryID int True ID of the territory in which the customer is located. Foreign key to
SalesTerritory.SalesTerritoryID.

AccountNumber varchar (10) False Unique number identifying the customer assigned by the accounting system.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 78 of 151
Table Details

Name PersonCreditCard

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Allow Default Description


Type Value
Nulls

BusinessEntityID int False Business entity identification number. Foreign key to Person.BusinessEntityID.

CreditCardID int False Credit card identification number. Foreign key to CreditCard.CreditCardID.

ModifiedDate datetime False Date and time the record was last updated.

Page 79 of 151
Table Details

Name SalesOrderDetail

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

SalesOrderID int False Primary key. Foreign key to SalesOrderHeader.SalesOrderID.

SalesOrderDetailID int False Primary key. One incremental unique number per product sold.

CarrierTrackingNumber nvarchar (25) True Shipment tracking number supplied by the shipper.

OrderQty smallint False Quantity ordered per product.

ProductID int False Product sold to customer. Foreign key to Product.ProductID.

SpecialOfferID int False Promotional code. Foreign key to SpecialOffer.SpecialOfferID.

UnitPrice money False Selling price of a single product.

UnitPriceDiscount money False Discount amount.

LineTotal numeric (38,6) False Per product subtotal. Computed as UnitPrice * (1 - UnitPriceDiscount) *
OrderQty.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 80 of 151
Table Details

Name SalesOrderHeader

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Page 81 of 151
Table Columns

Name Data Type Allow Default Description


Value
Nulls

SalesOrderID int False Primary key.

RevisionNumber tinyint False Incremental number to track changes to the sales order over
time.

OrderDate datetime False Dates the sales order was created.

DueDate datetime False Date the order is due to the customer.

ShipDate datetime True Date the order was shipped to the customer.

Status tinyint False Order current status. 1 = In process; 2 = Approved; 3 =


Backordered; 4 = Rejected; 5 = Shipped; 6 = Cancelled

OnlineOrderFlag userdefineddatatype False 0 = Order placed by sales person. 1 = Order placed online by
customer.

SalesOrderNumber nvarchar (25) False Unique sales order identification number.

PurchaseOrderNumber userdefineddatatype True Customer purchase order number reference.

AccountNumber userdefineddatatype True Financial accounting number reference.

CustomerID int False Customer identification number. Foreign key to


Customer.BusinessEntityID.

SalesPersonID int True Sales person who created the sales order. Foreign key to
SalesPerson.BusinessEntityID.

TerritoryID int True Territory in which the sale was made. Foreign key to
SalesTerritory.SalesTerritoryID.

BillToAddressID int False Customer billing address. Foreign key to Address.AddressID.

ShipToAddressID int False Customer shipping address. Foreign key to Address.AddressID.

ShipMethodID int False Shipping method. Foreign key to ShipMethod.ShipMethodID.

CreditCardID int True Credit card identification number. Foreign key to


CreditCard.CreditCardID.

CreditCardApprovalCode varchar (15) True Approval code provided by the credit card company.

CurrencyRateID int True Currency exchange rate used. Foreign key to


CurrencyRate.CurrencyRateID.

SubTotal money False Sales subtotal. Computed as


SUM(SalesOrderDetail.LineTotal)for the appropriate
SalesOrderID.

TaxAmt money False Tax amount.

Freight money False Shipping cost.

TotalDue money False Total due from customer. Computed as Subtotal + TaxAmt +
Freight.

Comment nvarchar (128) True Sales representative comments.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 82 of 151
Page 83 of 151
Table Details

Name SalesOrderHeaderSalesReason

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Nulls Value

SalesOrderID int False Primary key. Foreign key to SalesOrderHeader.SalesOrderID.

SalesReasonID int False Primary key. Foreign key to SalesReason.SalesReasonID.

ModifiedDate datetime False Date and time the record was last updated.

Page 84 of 151
Table Details

Name SalesPerson

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key for SalesPerson records. Foreign key to
Employee.BusinessEntityID

TerritoryID int True Territory currently assigned to. Foreign key to


SalesTerritory.SalesTerritoryID.

SalesQuota money True Projected yearly sales.

Bonus money False Bonus due if quota is met.

CommissionPct smallmoney False Commision percent received per sale.

SalesYTD money False Sales total year to date.

SalesLastYear money False Sales total of previous year.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 85 of 151
Table Details

Name SalesPersonQuotaHistory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Sales person identification number. Foreign key to


SalesPerson.BusinessEntityID.

QuotaDate datetime False Sales quota date.

SalesQuota money False Sales quota amount.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 86 of 151
Table Details

Name SalesReason

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Nulls Value

SalesReasonID int False Primary key for SalesReason records.

Name userdefineddatatype False Sales reason description.

ReasonType userdefineddatatype False Category the sales reason belongs to.

ModifiedDate datetime False Date and time the record was last updated.

Page 87 of 151
Table Details

Name SalesTaxRate

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

SalesTaxRateID int False Primary key for SalesTaxRate records.

StateProvinceID int False State, province, or country/region the sales tax applies to.

TaxType tinyint False 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale
transactions, 3 = Tax applied to all sales (retail and wholesale)
transactions.

TaxRate smallmoney False Tax rate amount.

Name userdefineddatatype False Tax rate description.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support
a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 88 of 151
Table Details

Name SalesTerritory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

TerritoryID int False Primary key for SalesTerritory records.

Name userdefineddatatype False Sales territory description

CountryRegionCode nvarchar (3) False ISO standard country or region code. Foreign key to
CountryRegion.CountryRegionCode.

Group nvarchar (50) False Geographic area to which the sales territory belong.

SalesYTD money False Sales in the territory year to date.

SalesLastYear money False Sales in the territory the previous year.

CostYTD money False Business costs in the territory year to date.

CostLastYear money False Business costs in the territory the previous year.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to
support a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 89 of 151
Table Details

Name SalesTerritoryHistory

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key. The sales rep. Foreign key to SalesPerson.BusinessEntityID.

TerritoryID int False Primary key. Territory identification number. Foreign key to
SalesTerritory.SalesTerritoryID.

StartDate datetime False Primary key. Date the sales representive started work in the territory.

EndDate datetime True Date the sales representative left work in the territory.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 90 of 151
Table Details

Name ShoppingCartItem

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Nulls Value

ShoppingCartItemID int False Primary key for ShoppingCartItem records.

ShoppingCartID nvarchar (50) False Shopping cart identification number.

Quantity int False Product quantity ordered.

ProductID int False Product ordered. Foreign key to Product.ProductID.

DateCreated datetime False Date the time the record was created.

ModifiedDate datetime False Date and time the record was last updated.

Page 91 of 151
Table Details

Name SpecialOffer

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

SpecialOfferID int False Primary key for SpecialOffer records.

Description nvarchar (255) False Discount description.

DiscountPct smallmoney False Discount precentage.

Type nvarchar (50) False Discount type category.

Category nvarchar (50) False Group the discount applies to such as Reseller or Customer.

StartDate datetime False Discount start date.

EndDate datetime False Discount end date.

MinQty int False Minimum discount percent allowed.

MaxQty int True Maximum discount percent allowed.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 92 of 151
Table Details

Name SpecialOfferProduct

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

SpecialOfferID int False Primary key for SpecialOfferProduct records.

ProductID int False Product identification number. Foreign key to Product.ProductID.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support a
merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 93 of 151
Table Details

Name Store

Date Created 14/03/2012 13:14:19

Owner dbo

Quoted Identifiers True

Replicated False

Schema Sales

Table Columns

Name Data Type Allow Default Description


Value
Nulls

BusinessEntityID int False Primary key. Foreign key to Customer.BusinessEntityID.

Name userdefineddatatype False Name of the store.

SalesPersonID int True ID of the sales person assigned to the customer. Foreign key to
SalesPerson.BusinessEntityID.

Demographics xml True Demographic informationg about the store such as the number of
employees, annual sales and store type.

rowguid uniqueidentifier False ROWGUIDCOL number uniquely identifying the record. Used to support
a merge replication sample.

ModifiedDate datetime False Date and time the record was last updated.

Page 94 of 151
Name Owner Schema Description

uspGetBillOfMaterials dbo dbo Stored procedure using a recursive query to return a multi-level bill
of material for the specified ProductID.

uspGetEmployeeManagers dbo dbo Stored procedure using a recursive query to return the direct and
indirect managers of the specified employee.

uspGetManagerEmployees dbo dbo Stored procedure using a recursive query to return the direct and
indirect employees of the specified manager.

uspGetWhereUsedProductID dbo dbo Stored procedure using a recursive query to return all components
or assemblies that directly or indirectly use the specified ProductID.

uspLogError dbo dbo Logs error information in the ErrorLog table about the error that
caused execution to jump to the CATCH block of a TRY...CATCH
construct. Should be executed from within the scope of a CATCH
block otherwise it will return without inserting error information.

uspPrintError dbo dbo Prints error information about the error that caused execution to
jump to the CATCH block of a TRY...CATCH construct. Should be
executed from within the scope of a CATCH block otherwise it will
return without printing any error information.

uspSearchCandidateResumes dbo dbo

uspUpdateEmployeeHireInfo dbo HumanResources Updates the Employee table and inserts a new row in the
EmployeePayHistory table with the values specified in the input
parameters.

uspUpdateEmployeeLogin dbo HumanResources Updates the Employee table with the values specified in the input
parameters for the given BusinessEntityID.

uspUpdateEmployeePersonalInfo dbo HumanResources Updates the Employee table with the values specified in the input
parameters for the given EmployeeID.

Page 95 of 151
Name uspGetBillOfMaterials

Description Stored procedure using a recursive query to return a multi-level bill of material for the specified
ProductID.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@StartProductID int False No default

@CheckDate datetime False No default

Page 96 of 151
Page 97 of 151
Name uspGetEmployeeManagers

Description Stored procedure using a recursive query to return the direct and indirect managers of the specified
employee.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@BusinessEntityID int False No default

Page 98 of 151
Page 99 of 151
Name uspGetManagerEmployees

Description Stored procedure using a recursive query to return the direct and indirect employees of the specified
manager.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@BusinessEntityID int False No default

Page 100 of 151


Page 101 of 151
Name uspGetWhereUsedProductID

Description Stored procedure using a recursive query to return all components or assemblies that directly or
indirectly use the specified ProductID.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@StartProductID int False No default

@CheckDate datetime False No default

Page 102 of 151


Page 103 of 151
Name uspLogError

Description Logs error information in the ErrorLog table about the error that caused execution to jump to the
CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH
block otherwise it will return without inserting error information.

Date Created 14/03/2012 13:14:18

Last Modified 14/03/2012 13:14:18

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@ErrorLogID int True 0

Page 104 of 151


Page 105 of 151
Name uspPrintError

Description Prints error information about the error that caused execution to jump to the CATCH block of a
TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will
return without printing any error information.

Date Created 14/03/2012 13:14:18

Last Modified 14/03/2012 13:14:18

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Recompile False

For Replication False

Page 106 of 151


Name uspSearchCandidateResumes

Description

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@searchString nvarchar (1000) False No default

@useInflectional bit False 0

@useThesaurus bit False 0

@language int False 0

Page 107 of 151


Page 108 of 151
Name uspUpdateEmployeeHireInfo

Description Updates the Employee table and inserts a new row in the EmployeePayHistory table with the values
specified in the input parameters.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema HumanResources

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@BusinessEntityID int False No default

@JobTitle nvarchar (50) False No default

@HireDate datetime False No default

@RateChangeDate datetime False No default

@Rate money False No default

@PayFrequency tinyint False No default

@CurrentFlag userdefineddatatype False No default

Page 109 of 151


Page 110 of 151
Name uspUpdateEmployeeLogin

Description Updates the Employee table with the values specified in the input parameters for the given
BusinessEntityID.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema HumanResources

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@BusinessEntityID int False No default

@OrganizationNode hierarchyid False No default

@LoginID nvarchar (256) False No default

@JobTitle nvarchar (50) False No default

@HireDate datetime False No default

@CurrentFlag userdefineddatatype False No default

Page 111 of 151


Page 112 of 151
Name uspUpdateEmployeePersonalInfo

Description Updates the Employee table with the values specified in the input parameters for the given
EmployeeID.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema HumanResources

System Object False

Recompile False

For Replication False

Parameters

Name Data Type Output Default Value

@BusinessEntityID int False No default

@NationalIDNumber nvarchar (15) False No default

@BirthDate datetime False No default

@MaritalStatus nchar (1) False No default

@Gender nchar (1) False No default

Page 113 of 151


Name Owner Schema Description

ufnGetAccountingEndDate dbo dbo Scalar function used in the uSalesOrderHeader trigger to set the starting
account date.

ufnGetAccountingStartDate dbo dbo Scalar function used in the uSalesOrderHeader trigger to set the ending
account date.

ufnGetContactInformation dbo dbo Table value function returning the first name, last name, job title and contact
type for a given contact.

ufnGetDocumentStatusText dbo dbo Scalar function returning the text representation of the Status column in the
Document table.

ufnGetProductDealerPrice dbo dbo Scalar function returning the dealer price for a given product on a particular
order date.

ufnGetProductListPrice dbo dbo Scalar function returning the list price for a given product on a particular order
date.

ufnGetProductStandardCost dbo dbo Scalar function returning the standard cost for a given product on a particular
order date.

ufnGetPurchaseOrderStatusText dbo dbo Scalar function returning the text representation of the Status column in the
PurchaseOrderHeader table.

ufnGetSalesOrderStatusText dbo dbo Scalar function returning the text representation of the Status column in the
SalesOrderHeader table.

ufnGetStock dbo dbo Scalar function returning the quantity of inventory in LocationID 6
(Miscellaneous Storage)for a specified ProductID.

ufnLeadingZeros dbo dbo Scalar function used by the Sales.Customer table to help set the account
number.

Page 114 of 151


Name ufnGetAccountingEndDate

Description Scalar function used in the uSalesOrderHeader trigger to set the starting account date.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Page 115 of 151


Name ufnGetAccountingStartDate

Description Scalar function used in the uSalesOrderHeader trigger to set the ending account date.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Page 116 of 151


Name ufnGetContactInformation

Description Table value function returning the first name, last name, job title and contact type for a given contact.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Table

Schema Bound False

Parameters

Name Data Type Output Default Value

@PersonID int NotApplicable No default

Page 117 of 151


Page 118 of 151
Name ufnGetDocumentStatusText

Description Scalar function returning the text representation of the Status column in the Document table.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Parameters

Name Data Type Output Default Value

@Status tinyint NotApplicable No default

Page 119 of 151


Name ufnGetProductDealerPrice

Description Scalar function returning the dealer price for a given product on a particular order date.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Parameters

Name Data Type Output Default Value

@ProductID int NotApplicable No default

@OrderDate datetime NotApplicable No default

Page 120 of 151


Name ufnGetProductListPrice

Description Scalar function returning the list price for a given product on a particular order date.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Parameters

Name Data Type Output Default Value

@ProductID int NotApplicable No default

@OrderDate datetime NotApplicable No default

Page 121 of 151


Name ufnGetProductStandardCost

Description Scalar function returning the standard cost for a given product on a particular order date.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Parameters

Name Data Type Output Default Value

@ProductID int NotApplicable No default

@OrderDate datetime NotApplicable No default

Page 122 of 151


Name ufnGetPurchaseOrderStatusText

Description Scalar function returning the text representation of the Status column in the PurchaseOrderHeader
table.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Parameters

Name Data Type Output Default Value

@Status tinyint NotApplicable No default

Page 123 of 151


Name ufnGetSalesOrderStatusText

Description Scalar function returning the text representation of the Status column in the SalesOrderHeader table.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Parameters

Name Data Type Output Default Value

@Status tinyint NotApplicable No default

Page 124 of 151


Name ufnGetStock

Description Scalar function returning the quantity of inventory in LocationID 6 (Miscellaneous Storage)for a
specified ProductID.

Date Created 14/03/2012 13:14:55

Last Modified 14/03/2012 13:14:55

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound False

Parameters

Name Data Type Output Default Value

@ProductID int NotApplicable No default

Page 125 of 151


Name ufnLeadingZeros

Description Scalar function used by the Sales.Customer table to help set the account number.

Date Created 14/03/2012 13:14:18

Last Modified 14/03/2012 13:14:18

Encrypted False

Execution Context Caller

Execution Context Principal

Owner dbo

Quoted Identifiers True

Schema dbo

System Object False

Function Type Scalar

Schema Bound True

Parameters

Name Data Type Output Default Value

@Value int NotApplicable No default

Page 126 of 151


General

Name master

Description

Last Backup Date {Not Configured}

Last Log Backup Date {Not Configured}

Owner sa

Creation Date 08/04/2003 09:13:36

Read Only False

Size 6.63MB

Space Available 1.81MB

Users ##MS_AgentSigningCertificate##
##MS_PolicyEventProcessingLogin##
dbo
guest
INFORMATION_SCHEMA
sys

Full Text Enabled False

Collation Latin1_General_CI_AS

Logical Name Type File Autogrowth File Name


Group

master Data PRIMARY By 10 C:\Program Files\Microsoft SQL


Percent Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\master.mdf

mastlog.ldf Log Not By 10 C:\Program Files\Microsoft SQL


Applicable Percent Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.ldf

Page 127 of 151


Options

Collation Latin1_General_CI_AS

Recovery Model Simple

Compatibility Level SQL 2012 (110)

Other Options

Auto Close False

Auto Create Statistics True

Auto Shrink False

Auto Update Statistics True

Close Cursors On Commit False

ANSI NULL Default False

ANSI NULLS Enabled False

ANSI Padding Enabled False

ANSI Warnings Enabled False

Arithmetic Abort Enabled False

Concatenate Null Yields Null False

Database Ownership Chaining True

Numeric Round Abort Enabled False

Quoted Identifiers Enabled False

Recursive Triggers Enabled False

Page Verify Checksum

Read Only False

Status Normal

User Access Multiple

Date Correlation Optimization False

Parameterization Simple

Trustworthy False

Auto Update Statistics Async False

Page 128 of 151


##MS_AgentSigningCertificate##

Name ##MS_AgentSigningCertificate##

Creation Date 10/02/2012 21:09:45

Default Schema

Login ##MS_AgentSigningCertificate##

Database Roles None

##MS_PolicyEventProcessingLogin##

Name ##MS_PolicyEventProcessingLogin##

Creation Date 10/02/2012 21:07:47

Default Schema dbo

Login ##MS_PolicyEventProcessingLogin##

Database Roles None

dbo

Name dbo

Creation Date 08/04/2003 09:10:19

Default Schema dbo

Login sa

Database Roles db_owner

guest

Name guest

Creation Date 08/04/2003 09:10:19

Default Schema guest

Login No Login

Database Roles None

INFORMATION_SCHEMA

Name INFORMATION_SCHEMA

Creation Date 13/04/2009 12:59:06

Default Schema

Login No Login

Database Roles None

Page 129 of 151


sys

Name sys

Creation Date 13/04/2009 12:59:06

Default Schema

Login No Login

Database Roles None

Page 130 of 151


Page 131 of 151
General

Name model

Description

Last Backup Date {Not Configured}

Last Log Backup Date {Not Configured}

Owner sa

Creation Date 08/04/2003 09:13:36

Read Only False

Size 5.06MB

Space Available 2.09MB

Users dbo
guest
INFORMATION_SCHEMA
sys

Full Text Enabled False

Collation Latin1_General_CI_AS

Logical Name Type File Autogrowth File Name


Group

modeldev Data PRIMARY By 1024 C:\Program Files\Microsoft SQL


KB Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\model.mdf

modellog.ldf Log Not By 10 C:\Program Files\Microsoft SQL


Applicable Percent Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\modellog.ldf

Page 132 of 151


Options

Collation Latin1_General_CI_AS

Recovery Model Full

Compatibility Level SQL 2012 (110)

Other Options

Auto Close False

Auto Create Statistics True

Auto Shrink False

Auto Update Statistics True

Close Cursors On Commit False

ANSI NULL Default False

ANSI NULLS Enabled False

ANSI Padding Enabled False

ANSI Warnings Enabled False

Arithmetic Abort Enabled False

Concatenate Null Yields Null False

Database Ownership Chaining False

Numeric Round Abort Enabled False

Quoted Identifiers Enabled False

Recursive Triggers Enabled False

Page Verify Checksum

Read Only False

Status Normal

User Access Multiple

Date Correlation Optimization False

Parameterization Simple

Trustworthy False

Auto Update Statistics Async False

Page 133 of 151


dbo

Name dbo

Creation Date 08/04/2003 09:10:42

Default Schema dbo

Login sa

Database Roles db_owner

guest

Name guest

Creation Date 08/04/2003 09:10:42

Default Schema guest

Login No Login

Database Roles None

INFORMATION_SCHEMA

Name INFORMATION_SCHEMA

Creation Date 13/04/2009 12:59:11

Default Schema

Login No Login

Database Roles None

sys

Name sys

Creation Date 13/04/2009 12:59:11

Default Schema

Login No Login

Database Roles None

Page 134 of 151


Page 135 of 151
General

Name msdb

Description

Last Backup Date {Not Configured}

Last Log Backup Date {Not Configured}

Owner sa

Creation Date 10/02/2012 21:02:17

Read Only False

Size 21.25MB

Space Available 4.42MB

Users ##MS_PolicyEventProcessingLogin##
##MS_PolicyTsqlExecutionLogin##
dbo
guest
INFORMATION_SCHEMA
MS_DataCollectorInternalUser
sys

Full Text Enabled True

Collation Latin1_General_CI_AS

Logical Name Type File Autogrowth File Name


Group

MSDBData Data PRIMARY By 10 C:\Program Files\Microsoft SQL


Percent Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\MSDBData.mdf

MSDBLog.ldf Log Not By 10 C:\Program Files\Microsoft SQL


Applicable Percent Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldf

Page 136 of 151


Options

Collation Latin1_General_CI_AS

Recovery Model Simple

Compatibility Level SQL 2012 (110)

Other Options

Auto Close False

Auto Create Statistics True

Auto Shrink False

Auto Update Statistics True

Close Cursors On Commit False

ANSI NULL Default False

ANSI NULLS Enabled False

ANSI Padding Enabled False

ANSI Warnings Enabled False

Arithmetic Abort Enabled False

Concatenate Null Yields Null False

Database Ownership Chaining True

Numeric Round Abort Enabled False

Quoted Identifiers Enabled False

Recursive Triggers Enabled False

Page Verify Checksum

Read Only False

Status Normal

User Access Multiple

Date Correlation Optimization False

Parameterization Simple

Trustworthy True

Auto Update Statistics Async False

Extended Properties

Property Name Value

Microsoft_Management_Utility_Version ___SQLVERSION___NEW___

Page 137 of 151


##MS_PolicyEventProcessingLogin##

Name ##MS_PolicyEventProcessingLogin##

Creation Date 10/02/2012 21:07:47

Default Schema dbo

Login ##MS_PolicyEventProcessingLogin##

Database Roles SQLAgentUserRole


SQLAgentReaderRole
SQLAgentOperatorRole
PolicyAdministratorRole

##MS_PolicyTsqlExecutionLogin##

Name ##MS_PolicyTsqlExecutionLogin##

Creation Date 10/02/2012 21:07:47

Default Schema dbo

Login ##MS_PolicyTsqlExecutionLogin##

Database Roles SQLAgentUserRole


SQLAgentReaderRole
SQLAgentOperatorRole
PolicyAdministratorRole

dbo

Name dbo

Creation Date 08/04/2003 09:10:42

Default Schema dbo

Login sa

Database Roles db_owner

guest

Name guest

Creation Date 08/04/2003 09:10:42

Default Schema guest

Login No Login

Database Roles None

INFORMATION_SCHEMA

Name INFORMATION_SCHEMA

Creation Date 13/04/2009 12:59:11

Default Schema

Login No Login

Database Roles None

Page 138 of 151


MS_DataCollectorInternalUser

Name MS_DataCollectorInternalUser

Creation Date 10/02/2012 21:05:49

Default Schema dbo

Login No Login

Database Roles SQLAgentUserRole


db_ssisltduser
db_ssisoperator
dc_operator
dc_admin

sys

Name sys

Creation Date 13/04/2009 12:59:11

Default Schema

Login No Login

Database Roles None

Page 139 of 151


Page 140 of 151
General

Name tempdb

Description

Last Backup Date {Not Configured}

Last Log Backup Date {Not Configured}

Owner sa

Creation Date 15/06/2012 13:09:21

Read Only False

Size 8.75MB

Space Available 5.80MB

Users dbo
guest
INFORMATION_SCHEMA
sys

Full Text Enabled False

Collation Latin1_General_CI_AS

Logical Name Type File Autogrowth File Name


Group

tempdev Data PRIMARY By 10 C:\Program Files\Microsoft SQL


Percent Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\tempdb.mdf

templog.ldf Log Not By 10 C:\Program Files\Microsoft SQL


Applicable Percent Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\templog.ldf

Page 141 of 151


Options

Collation Latin1_General_CI_AS

Recovery Model Simple

Compatibility Level SQL 2012 (110)

Other Options

Auto Close False

Auto Create Statistics True

Auto Shrink False

Auto Update Statistics True

Close Cursors On Commit False

ANSI NULL Default False

ANSI NULLS Enabled False

ANSI Padding Enabled False

ANSI Warnings Enabled False

Arithmetic Abort Enabled False

Concatenate Null Yields Null False

Database Ownership Chaining True

Numeric Round Abort Enabled False

Quoted Identifiers Enabled False

Recursive Triggers Enabled False

Page Verify Checksum

Read Only False

Status Normal

User Access Multiple

Date Correlation Optimization False

Parameterization Simple

Trustworthy False

Auto Update Statistics Async False

Page 142 of 151


dbo

Name dbo

Creation Date 08/04/2003 09:10:42

Default Schema dbo

Login sa

Database Roles db_owner

guest

Name guest

Creation Date 08/04/2003 09:10:42

Default Schema guest

Login No Login

Database Roles None

INFORMATION_SCHEMA

Name INFORMATION_SCHEMA

Creation Date 13/04/2009 12:59:11

Default Schema

Login No Login

Database Roles None

sys

Name sys

Creation Date 13/04/2009 12:59:11

Default Schema

Login No Login

Database Roles None

Page 143 of 151


Page 144 of 151
Name Login Type Creation Date

##MS_PolicyEventProcessingLogin## SQL Login 10/02/2012 21:07:46

##MS_PolicyTsqlExecutionLogin## SQL Login 10/02/2012 21:07:46

DEMO-SQL2012\Administrator Windows User 15/06/2012 13:09:11

NT AUTHORITY\SYSTEM Windows User 15/06/2012 13:09:11

NT Service\MSSQLSERVER Windows User 15/06/2012 13:09:11

NT SERVICE\SQLSERVERAGENT Windows User 15/06/2012 13:09:12

NT SERVICE\SQLWriter Windows User 15/06/2012 13:09:11

NT SERVICE\Winmgmt Windows User 15/06/2012 13:09:11

sa SQL Login 08/04/2003 09:10:35

Page 145 of 151


##MS_PolicyEventProcessingLogin##

SQL Login Type SQL Login

Default Database master

Disabled True

Deny Login False

Creation Date 10/02/2012 21:07:46

Language us_english

Locked False

Password Expired False

User Must Change Password False

Password Expiration Enabled False

Password Policy Enforced True

##MS_PolicyTsqlExecutionLogin##

SQL Login Type SQL Login

Default Database master

Disabled True

Deny Login False

Creation Date 10/02/2012 21:07:46

Language us_english

Locked False

Password Expired False

User Must Change Password False

Password Expiration Enabled False

Password Policy Enforced True

DEMO-SQL2012\Administrator

SQL Login Type Windows User

Default Database master

Disabled False

Deny Login False

Creation Date 15/06/2012 13:09:11

Language us_english

NT AUTHORITY\SYSTEM

SQL Login Type Windows User

Default Database master

Disabled False

Deny Login False

Creation Date 15/06/2012 13:09:11

Language us_english

Page 146 of 151


NT Service\MSSQLSERVER

SQL Login Type Windows User

Default Database master

Disabled False

Deny Login False

Creation Date 15/06/2012 13:09:11

Language us_english

NT SERVICE\SQLSERVERAGENT

SQL Login Type Windows User

Default Database master

Disabled False

Deny Login False

Creation Date 15/06/2012 13:09:12

Language us_english

NT SERVICE\SQLWriter

SQL Login Type Windows User

Default Database master

Disabled False

Deny Login False

Creation Date 15/06/2012 13:09:11

Language us_english

NT SERVICE\Winmgmt

SQL Login Type Windows User

Default Database master

Disabled False

Deny Login False

Creation Date 15/06/2012 13:09:11

Language us_english

Page 147 of 151


sa

SQL Login Type SQL Login

Default Database master

Disabled True

Deny Login False

Creation Date 08/04/2003 09:10:35

Language us_english

Locked False

Password Expired False

User Must Change Password False

Password Expiration Enabled False

Password Policy Enforced True

Page 148 of 151


bulkadmin

Description Members of the bulkadmin fixed server role can run the BULK INSERT statement.

Members [No Members]

dbcreator

Description Members of the dbcreator fixed server role can create, alter, drop, and restore any database.

Members [No Members]

diskadmin

Description The diskadmin fixed server role is used for managing disk files.

Members [No Members]

processadmin

Description Members of the processadmin fixed server role can end processes that are running in an instance of
SQL Server.

Members [No Members]

public

Description Every SQL Server login belongs to the public server role. When a server principal has not been granted
or denied specific permissions on a securable object, the user inherits the permissions granted to
public on that object. Only assign public permissions on any object when you want the object to be
available to all users. You cannot change membership in public.

Members [No Members]

securityadmin

Description Members of the securityadmin fixed server role manage logins and their properties. They can GRANT,
DENY, and REVOKE server-level permissions. They can also GRANT, DENY, and REVOKE
database-level permissions if they have access to a database. Additionally, they can reset passwords
for SQL Server logins.

Members [No Members]

serveradmin

Description Members of the serveradmin fixed server role can change server-wide configuration options and shut
down the server.

Members [No Members]

setupadmin

Description Members of the setupadmin fixed server role can add and remove linked servers.

Members [No Members]

Page 149 of 151


sysadmin

Description Members of the sysadmin fixed server role can perform any activity in the server.

Members sa
DEMO-SQL2012\Administrator
NT SERVICE\SQLWriter
NT SERVICE\Winmgmt
NT Service\MSSQLSERVER
NT SERVICE\SQLSERVERAGENT

Page 150 of 151


Version Username Date Time Description

1.03 CORP\Administrator 08 May 2014 16:58 Updated contacts

1.02 CORP\Administrator 08 May 2014 16:16 Updated notes and renamed

1.01 CORP\Administrator 08 May 2014 16:16 Updated by XIA Configuration Client Data

1.00 CORP\Administrator 08 May 2014 16:16 Initial Item Creation

Page 151 of 151

You might also like