Section III. Running The Examples

All code examples have been run on SQL Server 2016 against the 2016 backup of the AdventureWorks database.

You need five things to run these examples.

  1. A copy of SQL Server Developer Edition which can be downloaded for free from the Microsoft website.

  2. A copy of the 2016 version of the AdventureWorks database. Instructions on how to download and install the database files can be found here.

  3. Once you have the database installed, you need to create another database called "demo". This database will be used when we need to create things and we do not want to mess up AdventureWorks.

  4. Some of the examples use example datasets. Those can be downloaded from the MSDS website here.

  5. The last thing you need is the code. You can cut and paste code right from the screen, or you can download it from the GitHub repo here.

Last updated