Where can I find the Northwind database for Microsoft SQL Server 2008?

别说谁变了你拦得住时间么 提交于 2019-12-03 15:59:46

问题


I'm trying to find and create/import the Northwind database to practice my Linq-fu.

I cannot find it for the life of me, searching just turns me to this page, which in turn tells me to find it on the official page which isn't there.

http://msdn.microsoft.com/en-us/library/ms227484%28v=vs.90%29.aspx

Where can I find the Northwind database?


回答1:


Northwind doesn't come installed with SQL Server 2008. You can instead:

  • download scripts for creating the Northwind and pubs sample databases.
  • download Northwind and pubs MDF/LDF from Microsoft. The article is titled "SQL Server 2000 Sample Databases".

They come in SQL Server 2000 format / compatibility mode. Microsoft seems to have stopped using these 2 in favour of the new sample database for SQL Server 2008: AdventureWorks.

You can download AdventureWorks 2008 R2 SR1.

Microsoft has its SQL Server Product Database samples at CodePlex.




回答2:


Try this for a step by step tutorial on how to find the download and install the Northwind and Pubs databases for Sql Server 2008.

northwind database sql server 2008




回答3:


For any edition of SQL SERVER. You can create the database yourself using Northwind database creation script.

Download Northwind.sql.zip from this site https://northwinddatabase.codeplex.com/downloads/get/269239

then create a database called Northwind in your Sql Server then. Unzip / decompress the file then open the sql file in Sql Server Management Studio select all code (ctrl+a) then press execute.



来源:https://stackoverflow.com/questions/5061629/where-can-i-find-the-northwind-database-for-microsoft-sql-server-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!