安裝adventure和northwind樣本資料庫,adventurenorthwind

來源:互聯網
上載者:User

安裝adventure和northwind樣本資料庫,adventurenorthwind

    網上有許多有關AdventureWorks資料庫的安裝求助資訊,在baidu和google中也可搜到許多該問題的答案,但是有部分答案很是模糊,看完讓人似懂非懂,舉個例子說明:

      1.去官方網站下載Adventureworks資料庫、然後安裝資料庫,再用兩種方法附加到MS SQL Server2005中

      2.定位到 \Program Files\Microsoft SQL Server\90\Tools\Samples\,然後雙擊 SqlServerSamples.msi 啟動安裝程式。(SQL 2005聯機叢書)

但是大多Adventureworks 資料庫並非隨sql2005一起安裝,也同時在sql2005的安裝目錄下面更本找不到什麼AdventureWorks OLTP或AdventureWorksDW目錄,更別提其安裝指令碼(instawdb.sql )了。


下面就其實踐,和大家分享下。

    步驟:

      1 擷取AdventureWorks和Northwind資料庫,如csdn下載頻道有提供下載。

            2  將AdventureWorks和Northwind 資料庫(解壓)到指定目錄

            3 將得到的資料庫檔案(AdventureWorks.bak或者CreateAdventureWork.sql)copy到你的Sql2005資料目錄下

            4 啟動sql 2005進入操作介面,在資料庫節點上右鍵->附加(tear off)->瀏覽指定AdventureWorks_Data->確定

            5 Ok了,現在你就可以使用AdventureWorks和Northwind資料庫了。


其他說明:

         1  現在樣本資料庫Sql Server Sample Database已不在Microsoft  Download板塊了,而是到了:www.codeplex.com,在其中有sample databases導航,指示你需要sql2005還是sql2008,2012,2014等等

         其中有很多關於AdventureWorks的Sample Database,分類介紹:分為X86 、X64、IA64,而每一類別中又有DB(OLTP Sample database)、BI(Data Warehouse)、LT(基於AdventureWorks OLTP的簡化版database)還有各自的CI版。請選擇對應的下載檔案。

Northwind庫表關係圖


  • Northwind_Database

http://download.csdn.net/detail/cashcat2004/9100933

  • AdventureWorks

http://download.csdn.net/detail/cashcat2004/9100919

  • 其他樣本資料庫參考

http://www.codeplex.com/


著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.