In this article I will explain with an example, how to install the Microsoft’s Northwind and Pubs sample databases in SQL Server Express.
 
 

Step 1: Download the Microsoft’s free sample Northwind database

In order to download the Microsoft’s free sample Northwind database, you will need to visit the following URL.
 
 

Step 2: Installing Microsoft’s free sample Northwind database

A Setup file (.MSI) will be downloaded. You can save it on your desktop as you’ll need to execute it once download is complete.
As soon as the file download is completed, you can start the installation by Double clicking the Setup file or by doing Right Click and then clicking the Install option from the Context Menu.
Install the Northwind and Pubs Sample Databases in SQL Server Express
 
Once the installation is completed, you can check the installed database files in the following location, and you will find the Northwind database in the Installation Folder.
Install the Northwind and Pubs Sample Databases in SQL Server Express
 
 

Step 3: Attaching the Northwind MDF file to SQL Server Database using Management Studio

Now you need to start the SQL Server Management Studio and then Right Click the Databases Folder from the Object Explorer. In the Context Menu click on the Attach option as shown below.
Install the Northwind and Pubs Sample Databases in SQL Server Express
 
This option will open up a File Browser within SQL Server and you need to navigate and select the NORTHWIND.MDF file and press OK button.
Install the Northwind and Pubs Sample Databases in SQL Server Express
 
Once the above steps are done. You will see that the database is now available in your SQL Server along with the other databases.
Install the Northwind and Pubs Sample Databases in SQL Server Express