欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Microsoft SQL Server Product Samples:Database

程序员文章站 2022-06-16 22:57:52
...

从SQL Server 2005 之后示例数据都为AdventureWorks,需要的通过codeplex网站下载。这样设计的目的应该在于是生产库行不必要的用户以及权限分配。 从以下网址访问 除了版本上的区分外,还有OLTP与DW的区分,选择相对应的版本进行下载。一般来说向后兼容,所以

从SQL Server 2005 之后示例数据都为AdventureWorks,需要的通过codeplex网站下载。这样设计的目的应该在于是生产库行不必要的用户以及权限分配。

从以下网址访问

Microsoft SQL Server Product Samples:Database

除了版本上的区分外,还有OLTP与DW的区分,选择相对应的版本进行下载。一般来说向后兼容,,所以就以AdventureWorks2012 作为范例。

数据的下载有多种方式例如直接下载mdf文件,或者使用脚本进行安装或使用备份进行还原的方式。省时省力的还是下载mdf方式进行直接Attach。

To install AdventureWorks2012 OLTP database

  • Download the AdventureWorks2012 Data File .
  • From the License Agreement, click I Agree.
  • From File Download, click Save and browse to a location on your local server.
  • From SQL Server Management Studio, execute the following code: 路径名请自行更改
  • USE [master]

    GO