Welcome to MSDN Blogs Sign in | Join | Help

News

  • Microsoft PDC 2008

    Mit Dariusz quatschen

    Add to Technorati Favorites

     Dariusz quatscht - Die Podcast Show

    Subscribe with iTunes

    Search my blog using Live search

    These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified at Microsoft - Information on Terms of Use

How to install the Nortwind sample database in SQL Server Express

One of the things when setting up an demo environment (a fresh install) is to integrate the Northwind sample database on the demo environment. I normally just use a SQL Server Express for demos and I take Northwind to have data to play with, what else. I know there is some discussion around Northwind, but I for myself know that anyone in the audience knows Northwind, so no need to explain 15 valueable minutes on a more complex Schema.

So a blank SQL Server Express install on my machine is taking me to the following steps:

  1. Download the Northwind sample database from download.microsoft.com
  2. Run the Setup with the default settings. On my box the installed directory is "c:\SQL Server 2000 Sample Databases"
  3. Open a Command Prompt
  4. Change to the script directory, in my case cd "c:\sql server 2000 sample databases"
  5. Execute the following command:
    sqlcmd -S (local)\sqlexpress -E -i instnwnd.sql
    (assuming that your SQL Server Express is installed with default settings which is the named instance SQLEXPRESS)

That's it. Northwind is now installed on SQL Server Express.

Posted: Wednesday, July 23, 2008 11:43 AM by dparys

Comments

Chris Love's Official Blog - Professional ASP.NET said:

This week I am coming to you from the Microsoft Campus. So as you would expect I have a lot of energy

# July 25, 2008 9:56 AM
Anonymous comments are disabled
Page view tracker