How to Create Sample Database in MSSQL with Sample Data

14 Sep

This is very useful for application testing.

First you have to download the relevant sample databases from

Then copy the relevant AdventureWorks2008R2_Data.mdf file in to your machine where the MSSQL is installed. then go to MSSQL Editor and run the following query

CREATE DATABASE AdventureWorks2012
ON (FILENAME = 'D:\AdventureWorks2012_Data.mdf')

Don’t delete the above AdventureWorks2008R2_Data.mdf because this will be your database in MSSQL

Leave a comment

Posted by on September 14, 2012 in MSSQL


Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: