Skip to content

A general repository of various scripts and modifications made to the AdventureWorksLT2012.mdf database using SQL Server 2012

Notifications You must be signed in to change notification settings

diamonddelt/sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

This repository is for demonstrating various SQL Server 2012 solutions/scripts/etc. The specific tasks are derived from examples in "SQL Server 2012 T-SQL Recipes, 3rd Edition", by Jason Brimhall, David Dye, Jonathan Gennick, Andy Roberts, and Wayne Sheffield.

It uses the AdventureWorksLT2012_Data.mdf database, which is a freely distributed sample database provided by Microsoft. You can download it here: http://msftdbprodsamples.codeplex.com/releases/view/55330

To install it in SQL Server 2012 (easy modo): 1. Save the .mdf in a directory of your choice 2. Open SQL Server 2012 and Attach a New Database 3. Select the .mdf file, and remove any auto-generated .ldf entry it tries to find (the attach process will generate it's own new log file) 4. Profit

I am using the "Lite" version, because the full version is over 180MB and that's too big for simple demonstration purposes.

The .gitignore file specifies both the .mdf and .ldf files, which are the corresponding database and log files, that are not committed. However, all scripts applicable to these sample databases will be commited.

v1.1.0 - Added a "queries" folder, which will contain sample queries demonstrating tasks against the database. Each query should have a descriptive name and the commends will explain what it is doing. v1.0.0 - The "scripts" folder will contain all the goodies for scripting the sample database

About

A general repository of various scripts and modifications made to the AdventureWorksLT2012.mdf database using SQL Server 2012

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published