Professional Documents
Culture Documents
Version 1.03
Item ID 2688
Page 5 of 151
Page 6 of 151
General
Platform NT x64
Version 11.0.2100.60
Processors 1
Collation Latin1_General_CI_AS
Clustered False
Memory
Processors
Security
Page 7 of 151
Connections
Database Settings
Fill Factor 0
Advanced
Cursor Threshold -1
Default Language 0
Locks 0
Query Wait -1
Page 8 of 151
Name Owner Collation Compatibility Level
Page 9 of 151
General
Name AdventureWorks2012
Owner DEMO-SQL2012\Administrator
Size 189.49MB
Users dbo
guest
INFORMATION_SCHEMA
sys
Collation SQL_Latin1_General_CP1_CI_AS
Page 10 of 151
Options
Collation SQL_Latin1_General_CP1_CI_AS
Other Options
Status Normal
Parameterization Simple
Trustworthy False
Extended Properties
Page 11 of 151
dbo
Name dbo
Login
guest
Name guest
Login No Login
INFORMATION_SCHEMA
Name INFORMATION_SCHEMA
Default Schema
Login No Login
sys
Name sys
Default Schema
Login No Login
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.
Address Person Street address information for customers, employees, and vendors.
BusinessEntity Person Source of the ID that connects vendors, customers, and employees with
address and contact information.
ContactType Person Lookup table containing the types of business entity contacts.
CountryRegion Person Lookup table containing the ISO standard codes for countries and
regions.
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.
Page 14 of 151
ProductInventory Production Product inventory information.
ProductModelProductDescriptionCulture Production Cross-reference table mapping product descriptions and the language
the description is written in.
TransactionHistory Production Record of each purchase order, sales order, or work order transaction
year to date.
ProductVendor Purchasing Cross-reference table mapping vendors with the products they supply.
PurchaseOrderDetail Purchasing Individual products associated with a specific purchase order. See
PurchaseOrderHeader.
Vendor Purchasing Companies from whom Adventure Works Cycles purchases parts or
other goods.
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.
SalesOrderHeaderSalesReason Sales Cross-reference table mapping sales orders to sales reason codes.
ShoppingCartItem Sales Contains online customer orders until the order is submitted or
cancelled.
Page 15 of 151
SpecialOfferProduct Sales Cross-reference table mapping products to special offer discounts.
Page 16 of 151
Table Details
Name AWBuildVersion
Owner dbo
Replicated False
Schema dbo
Table Columns
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
Owner dbo
Replicated False
Schema dbo
Table Columns
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
Owner dbo
Replicated False
Schema dbo
Table Columns
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.
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
Owner dbo
Replicated False
Schema HumanResources
Table Columns
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
Owner dbo
Replicated False
Schema HumanResources
Table Columns
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.
OrganizationLevel smallint True The depth of the employee in the corporate hierarchy.
JobTitle nvarchar (50) False Work title such as Buyer or Sales Representative.
SalariedFlag userdefineddatatype False Job classification. 0 = Hourly, not exempt from collective bargaining. 1
= Salaried, exempt from collective bargaining.
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
Owner dbo
Replicated False
Schema HumanResources
Table Columns
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
Owner dbo
Replicated False
Schema HumanResources
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 24 of 151
Table Details
Name JobCandidate
Owner dbo
Replicated False
Schema HumanResources
Table Columns
BusinessEntityID int True Employee identification number if applicant was hired. Foreign key to
Employee.BusinessEntityID.
ModifiedDate datetime False Date and time the record was last updated.
Page 25 of 151
Table Details
Name Shift
Owner dbo
Replicated False
Schema HumanResources
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 26 of 151
Table Details
Name Address
Owner dbo
Replicated False
Schema Person
Table Columns
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.
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
Owner dbo
Replicated False
Schema Person
Table Columns
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
Owner dbo
Replicated False
Schema Person
Table Columns
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
Owner dbo
Replicated False
Schema Person
Table Columns
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
Owner dbo
Replicated False
Schema Person
Table Columns
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
Owner dbo
Replicated False
Schema Person
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 32 of 151
Table Details
Name CountryRegion
Owner dbo
Replicated False
Schema Person
Table Columns
CountryRegionCode nvarchar (3) False ISO standard code for countries and regions.
ModifiedDate datetime False Date and time the record was last updated.
Page 33 of 151
Table Details
Name EmailAddress
Owner dbo
Replicated False
Schema Person
Table Columns
BusinessEntityID int False Primary key. Person associated with this email address. Foreign key to
Person.BusinessEntityID
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
Owner dbo
Replicated False
Schema Person
Table Columns
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
Owner dbo
Replicated False
Schema Person
Table Columns
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.
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
Owner dbo
Replicated False
Schema Person
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 38 of 151
Table Details
Name PhoneNumberType
Owner dbo
Replicated False
Schema Person
Table Columns
PhoneNumberTypeID int False Primary key for telephone number type records.
ModifiedDate datetime False Date and time the record was last updated.
Page 39 of 151
Table Details
Name StateProvince
Owner dbo
Replicated False
Schema Person
Table Columns
CountryRegionCode nvarchar (3) False ISO standard country or region code. Foreign key to
CountryRegion.CountryRegionCode.
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
Owner dbo
Replicated False
Schema Production
Table Columns
ProductAssemblyID int True Parent product 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
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 42 of 151
Table Details
Name Document
Owner dbo
Replicated False
Schema Production
Table Columns
Owner int False Employee who controls the document. Foreign key to
Employee.BusinessEntityID
FileExtension nvarchar (8) False File extension indicating the document type. For example, .doc or .txt.
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
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 45 of 151
Table Details
Name Location
Owner dbo
Replicated False
Schema Production
Table Columns
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
Owner dbo
Replicated False
Schema Production
Table Columns
ReorderPoint smallint False Inventory level that triggers a purchase order or work order.
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.
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
Owner dbo
Replicated False
Schema Production
Table Columns
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
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 50 of 151
Table Details
Name ProductDescription
Owner dbo
Replicated False
Schema Production
Table Columns
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
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 52 of 151
Table Details
Name ProductInventory
Owner dbo
Replicated False
Schema Production
Table Columns
LocationID smallint False Inventory location identification number. Foreign key to Location.LocationID.
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
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 54 of 151
Table Details
Name ProductModel
Owner dbo
Replicated False
Schema Production
Table Columns
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
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 56 of 151
Table Details
Name ProductModelProductDescriptionCulture
Owner dbo
Replicated False
Schema Production
Table Columns
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
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 58 of 151
Table Details
Name ProductProductPhoto
Owner dbo
Replicated False
Schema Production
Table Columns
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
Owner dbo
Replicated False
Schema Production
Table Columns
Rating int False Product rating given by the reviewer. Scale is 1 to 5 with 5 as the
highest rating.
ModifiedDate datetime False Date and time the record was last updated.
Page 60 of 151
Table Details
Name ProductSubcategory
Owner dbo
Replicated False
Schema Production
Table Columns
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
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 62 of 151
Table Details
Name TransactionHistory
Owner dbo
Replicated False
Schema Production
Table Columns
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.
ModifiedDate datetime False Date and time the record was last updated.
Page 63 of 151
Table Details
Name TransactionHistoryArchive
Owner dbo
Replicated False
Schema Production
Table Columns
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.
ModifiedDate datetime False Date and time the record was last updated.
Page 64 of 151
Table Details
Name UnitMeasure
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 65 of 151
Table Details
Name WorkOrder
Owner dbo
Replicated False
Schema Production
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 66 of 151
Table Details
Name WorkOrderRouting
Owner dbo
Replicated False
Schema Production
Table Columns
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.
ModifiedDate datetime False Date and time the record was last updated.
Page 67 of 151
Table Details
Name ProductVendor
Owner dbo
Replicated False
Schema Purchasing
Table Columns
AverageLeadTime int False The average span of time (in days) between placing an order with the vendor and
receiving the purchased product.
LastReceiptDate datetime True Date the product was last received by the vendor.
ModifiedDate datetime False Date and time the record was last updated.
Page 68 of 151
Table Details
Name PurchaseOrderDetail
Owner dbo
Replicated False
Schema Purchasing
Table Columns
PurchaseOrderDetailID int False Primary key. One line number per purchased product.
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
Owner dbo
Replicated False
Schema Purchasing
Table Columns
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.
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
Owner dbo
Replicated False
Schema Purchasing
Table Columns
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
Owner dbo
Replicated False
Schema Purchasing
Table Columns
BusinessEntityID int False Primary key for Vendor records. Foreign key to
BusinessEntity.BusinessEntityID
ModifiedDate datetime False Date and time the record was last updated.
Page 73 of 151
Table Details
Name CountryRegionCurrency
Owner dbo
Replicated False
Schema Sales
Table Columns
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
Owner dbo
Replicated False
Schema Sales
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 75 of 151
Table Details
Name Currency
Owner dbo
Replicated False
Schema Sales
Table Columns
CurrencyCode nchar (3) False The ISO code for the Currency.
ModifiedDate datetime False Date and time the record was last updated.
Page 76 of 151
Table Details
Name CurrencyRate
Owner dbo
Replicated False
Schema Sales
Table Columns
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.
ModifiedDate datetime False Date and time the record was last updated.
Page 77 of 151
Table Details
Name Customer
Owner dbo
Replicated False
Schema Sales
Table Columns
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
Owner dbo
Replicated False
Schema Sales
Table Columns
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
Owner dbo
Replicated False
Schema Sales
Table Columns
SalesOrderDetailID int False Primary key. One incremental unique number per product sold.
CarrierTrackingNumber nvarchar (25) True Shipment tracking number supplied by the shipper.
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
Owner dbo
Replicated False
Schema Sales
Page 81 of 151
Table Columns
RevisionNumber tinyint False Incremental number to track changes to the sales order over
time.
ShipDate datetime True Date the order was shipped to the customer.
OnlineOrderFlag userdefineddatatype False 0 = Order placed by sales person. 1 = Order placed online by
customer.
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.
CreditCardApprovalCode varchar (15) True Approval code provided by the credit card company.
TotalDue money False Total due from customer. Computed as Subtotal + TaxAmt +
Freight.
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
Owner dbo
Replicated False
Schema Sales
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 84 of 151
Table Details
Name SalesPerson
Owner dbo
Replicated False
Schema Sales
Table Columns
BusinessEntityID int False Primary key for SalesPerson records. Foreign key to
Employee.BusinessEntityID
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
Owner dbo
Replicated False
Schema Sales
Table Columns
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
Owner dbo
Replicated False
Schema Sales
Table Columns
ModifiedDate datetime False Date and time the record was last updated.
Page 87 of 151
Table Details
Name SalesTaxRate
Owner dbo
Replicated False
Schema Sales
Table Columns
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.
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
Owner dbo
Replicated False
Schema Sales
Table Columns
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.
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
Owner dbo
Replicated False
Schema Sales
Table Columns
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
Owner dbo
Replicated False
Schema Sales
Table Columns
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
Owner dbo
Replicated False
Schema Sales
Table Columns
Category nvarchar (50) False Group the discount applies to such as Reseller or Customer.
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
Owner dbo
Replicated False
Schema Sales
Table Columns
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
Owner dbo
Replicated False
Schema Sales
Table Columns
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.
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.
Encrypted False
Owner dbo
Schema dbo
Recompile False
Parameters
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.
Encrypted False
Owner dbo
Schema dbo
Recompile False
Parameters
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.
Encrypted False
Owner dbo
Schema dbo
Recompile False
Parameters
Description Stored procedure using a recursive query to return all components or assemblies that directly or
indirectly use the specified ProductID.
Encrypted False
Owner dbo
Schema dbo
Recompile False
Parameters
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.
Encrypted False
Owner dbo
Schema dbo
Recompile False
Parameters
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.
Encrypted False
Owner dbo
Schema dbo
Recompile False
Description
Encrypted False
Owner dbo
Schema dbo
Recompile False
Parameters
Description Updates the Employee table and inserts a new row in the EmployeePayHistory table with the values
specified in the input parameters.
Encrypted False
Owner dbo
Schema HumanResources
Recompile False
Parameters
Description Updates the Employee table with the values specified in the input parameters for the given
BusinessEntityID.
Encrypted False
Owner dbo
Schema HumanResources
Recompile False
Parameters
Description Updates the Employee table with the values specified in the input parameters for the given
EmployeeID.
Encrypted False
Owner dbo
Schema HumanResources
Recompile False
Parameters
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.
Description Scalar function used in the uSalesOrderHeader trigger to set the starting account date.
Encrypted False
Owner dbo
Schema dbo
Description Scalar function used in the uSalesOrderHeader trigger to set the ending account date.
Encrypted False
Owner dbo
Schema dbo
Description Table value function returning the first name, last name, job title and contact type for a given contact.
Encrypted False
Owner dbo
Schema dbo
Parameters
Description Scalar function returning the text representation of the Status column in the Document table.
Encrypted False
Owner dbo
Schema dbo
Parameters
Description Scalar function returning the dealer price for a given product on a particular order date.
Encrypted False
Owner dbo
Schema dbo
Parameters
Description Scalar function returning the list price for a given product on a particular order date.
Encrypted False
Owner dbo
Schema dbo
Parameters
Description Scalar function returning the standard cost for a given product on a particular order date.
Encrypted False
Owner dbo
Schema dbo
Parameters
Description Scalar function returning the text representation of the Status column in the PurchaseOrderHeader
table.
Encrypted False
Owner dbo
Schema dbo
Parameters
Description Scalar function returning the text representation of the Status column in the SalesOrderHeader table.
Encrypted False
Owner dbo
Schema dbo
Parameters
Description Scalar function returning the quantity of inventory in LocationID 6 (Miscellaneous Storage)for a
specified ProductID.
Encrypted False
Owner dbo
Schema dbo
Parameters
Description Scalar function used by the Sales.Customer table to help set the account number.
Encrypted False
Owner dbo
Schema dbo
Parameters
Name master
Description
Owner sa
Size 6.63MB
Users ##MS_AgentSigningCertificate##
##MS_PolicyEventProcessingLogin##
dbo
guest
INFORMATION_SCHEMA
sys
Collation Latin1_General_CI_AS
Collation Latin1_General_CI_AS
Other Options
Status Normal
Parameterization Simple
Trustworthy False
Name ##MS_AgentSigningCertificate##
Default Schema
Login ##MS_AgentSigningCertificate##
##MS_PolicyEventProcessingLogin##
Name ##MS_PolicyEventProcessingLogin##
Login ##MS_PolicyEventProcessingLogin##
dbo
Name dbo
Login sa
guest
Name guest
Login No Login
INFORMATION_SCHEMA
Name INFORMATION_SCHEMA
Default Schema
Login No Login
Name sys
Default Schema
Login No Login
Name model
Description
Owner sa
Size 5.06MB
Users dbo
guest
INFORMATION_SCHEMA
sys
Collation Latin1_General_CI_AS
Collation Latin1_General_CI_AS
Other Options
Status Normal
Parameterization Simple
Trustworthy False
Name dbo
Login sa
guest
Name guest
Login No Login
INFORMATION_SCHEMA
Name INFORMATION_SCHEMA
Default Schema
Login No Login
sys
Name sys
Default Schema
Login No Login
Name msdb
Description
Owner sa
Size 21.25MB
Users ##MS_PolicyEventProcessingLogin##
##MS_PolicyTsqlExecutionLogin##
dbo
guest
INFORMATION_SCHEMA
MS_DataCollectorInternalUser
sys
Collation Latin1_General_CI_AS
Collation Latin1_General_CI_AS
Other Options
Status Normal
Parameterization Simple
Trustworthy True
Extended Properties
Microsoft_Management_Utility_Version ___SQLVERSION___NEW___
Name ##MS_PolicyEventProcessingLogin##
Login ##MS_PolicyEventProcessingLogin##
##MS_PolicyTsqlExecutionLogin##
Name ##MS_PolicyTsqlExecutionLogin##
Login ##MS_PolicyTsqlExecutionLogin##
dbo
Name dbo
Login sa
guest
Name guest
Login No Login
INFORMATION_SCHEMA
Name INFORMATION_SCHEMA
Default Schema
Login No Login
Name MS_DataCollectorInternalUser
Login No Login
sys
Name sys
Default Schema
Login No Login
Name tempdb
Description
Owner sa
Size 8.75MB
Users dbo
guest
INFORMATION_SCHEMA
sys
Collation Latin1_General_CI_AS
Collation Latin1_General_CI_AS
Other Options
Status Normal
Parameterization Simple
Trustworthy False
Name dbo
Login sa
guest
Name guest
Login No Login
INFORMATION_SCHEMA
Name INFORMATION_SCHEMA
Default Schema
Login No Login
sys
Name sys
Default Schema
Login No Login
Disabled True
Language us_english
Locked False
##MS_PolicyTsqlExecutionLogin##
Disabled True
Language us_english
Locked False
DEMO-SQL2012\Administrator
Disabled False
Language us_english
NT AUTHORITY\SYSTEM
Disabled False
Language us_english
Disabled False
Language us_english
NT SERVICE\SQLSERVERAGENT
Disabled False
Language us_english
NT SERVICE\SQLWriter
Disabled False
Language us_english
NT SERVICE\Winmgmt
Disabled False
Language us_english
Disabled True
Language us_english
Locked False
Description Members of the bulkadmin fixed server role can run the BULK INSERT statement.
dbcreator
Description Members of the dbcreator fixed server role can create, alter, drop, and restore any database.
diskadmin
Description The diskadmin fixed server role is used for managing disk files.
processadmin
Description Members of the processadmin fixed server role can end processes that are running in an instance of
SQL Server.
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.
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.
serveradmin
Description Members of the serveradmin fixed server role can change server-wide configuration options and shut
down the server.
setupadmin
Description Members of the setupadmin fixed server role can add and remove linked servers.
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
1.01 CORP\Administrator 08 May 2014 16:16 Updated by XIA Configuration Client Data