The size of the tables can be scaled by running the INSERT code block multiple times to increase the size of the Sales.SalesOrderHeader table by roughly 225MB, and to increase the size of the Sales.SalesOrderDetailEnlarged table by roughly 400MB per execution after the index rebuilds are run.Ĭreate Enlarged AdventureWorks Tables.sql (8. These larger tables can be used to produce parallel execution plans, plans that have large execution memory grant requirements, plans that perform sort and hash spill operations through tempdb, and many other uses in SQL Server. For a sample database leveraging more recent features of SQL Server, see WideWorldImporters. Database design has progressed since AdventureWorks was first published. The attached script has been tested against the AdventureWorks2008R2 and AdventureWorks2012 databases specifically, but as long as the table schema is the same it may be applied to any version of AdventureWorks. AdventureWorks is the OLTP sample, and AdventureWorksDW is the data warehouse sample. Below is a script that can enlarge these tables into tables named Sales.SalesOrderHeaderEnlarged and Sales.SalesOrderDetailEnlarged in the specific AdventureWorks database being targeted. The tables that I chose to enlarge for demonstration purposes were the Sales.SalesOrderHeader and Sales.SalesOrderDetail tables which can be used to demonstrate a number of different query plan and performance issues in SQL Server. The concept of creating a larger version of AdventureWorks is not new, Adam Machanic ( Blog| Twitter) blogged last year about enlarging specific tables for demonstrations, and at the same time I found that I also needed to create tables that were larger datasets for my own purposes. It is suitable for developing applications that need to store and manage transactional data. It includes tables for customers, orders, products, and other relational data. AdventureWorks is a transactional database for a fictional bicycle and outdoor supply company. A A A Person.Person Human beings involved with AdventureWorks: employees, customer contacts, and vendor contacts. Adventure Works OLTP (Online Transaction Processing): This version of the database simulates common transactional operations found in relational databases. Brightly colored sample databases for everyone Introducing the AdventureWorks OLTP Sample Database. The AdventureWorks set of sample databases are commonly used for presentation demos and showing how to use SQL Server, but one of the biggest challenges in using these databases is their small size which is geared towards ease of distribution, more than demonstrating all of the functionality of SQL Server. Thankfully, the fine people Microsoft have put together a set of databases that you can download and play with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |