Quantcast
Channel: Microsoft SQL Server Product Samples: Database
Viewing all 630 articles
Browse latest View live

Updated Wiki: Home

$
0
0

Download AdventureWorks Databases – 2008, 2008R2 and 2012

Our current project: Outlook Contacts Sync SQL Server – Iteration 4.
(Outlook Contacts Sync SQL Server – Iteration 3 | Outlook Contacts Sync SQL Server – Iteration 2)

  Download an AdventureWorks database

AdventureWorks OLTP database for SQL Server 2012 AdventureWorks DW database for SQL Server 2012 SQLAzure Get more information
AdventureWorks OLTP database for SQL Server 2008 R2 AdventureWorks DW database for SQL Server 2008 R2 Feedback Questions

AdventureWorksLT Databases: AdventureWorksLT 2012 | AdventureWorksLT 2008R2.

Summary

  • The AdventureWorks OLTP database supports standard online transaction processing scenarios for a fictitious bicycle manufacturer (Adventure Works Cycles). Scenarios include Manufacturing, Sales, Purchasing, Product Management, Contact Management, and Human Resources.
  • The AdventureWorks DW database demonstrates how to build a data warehouse.
  • The AdventureWorks LT database is a simplified and smaller sample database helpful for those new to relational database technology.
  • The SQL Azure OLTP database is a SQL Azure version of the AdventureWorks2012 database.

How To


Updated Wiki: Home

$
0
0

Download AdventureWorks Databases – 2008, 2008R2 and 2012

Our current project: Outlook Contacts Sync SQL Server – Iteration 4.
(Outlook Contacts Sync SQL Server – Iteration 3 | Outlook Contacts Sync SQL Server – Iteration 2)

AdventureWorks OLTP database for SQL Server 2012 AdventureWorks DW database for SQL Server 2012 SQLAzure Get more information
AdventureWorks OLTP database for SQL Server 2008 R2 AdventureWorks DW database for SQL Server 2008 R2 Feedback Questions

AdventureWorksLT Databases: AdventureWorksLT 2012 | AdventureWorksLT 2008R2.

Summary

  • The AdventureWorks OLTP database supports standard online transaction processing scenarios for a fictitious bicycle manufacturer (Adventure Works Cycles). Scenarios include Manufacturing, Sales, Purchasing, Product Management, Contact Management, and Human Resources.
  • The AdventureWorks DW database demonstrates how to build a data warehouse.
  • The AdventureWorks LT database is a simplified and smaller sample database helpful for those new to relational database technology.
  • The SQL Azure OLTP database is a SQL Azure version of the AdventureWorks2012 database.

How To

Commented Issue: AdventureWorks2008 [18544]

$
0
0
I need the MDF of this Project and I can't find it. The only available download is AdventureWorks2008R2 and this is not compatible with my machine. Can you help me? Thank you.
Comments: ** Comment from web user: DerrickVMSFT **

Please try the AdventureWorks2008 download at http://msftdbprodsamples.codeplex.com/releases/view/93587

Updated Wiki: Home

$
0
0

(New) Download AdventureWorks Databases – 2008, 2008R2 and 2012

Our current project: Outlook Contacts Sync SQL Server – Iteration 4.
(Outlook Contacts Sync SQL Server – Iteration 3 | Outlook Contacts Sync SQL Server – Iteration 2)

AdventureWorks OLTP database for SQL Server 2012 AdventureWorks DW database for SQL Server 2012 SQLAzure Get more information
AdventureWorks OLTP database for SQL Server 2008 R2 AdventureWorks DW database for SQL Server 2008 R2 Feedback Questions

AdventureWorksLT Databases: AdventureWorksLT 2012 | AdventureWorksLT 2008R2.

Summary

  • The AdventureWorks OLTP database supports standard online transaction processing scenarios for a fictitious bicycle manufacturer (Adventure Works Cycles). Scenarios include Manufacturing, Sales, Purchasing, Product Management, Contact Management, and Human Resources.
  • The AdventureWorks DW database demonstrates how to build a data warehouse.
  • The AdventureWorks LT database is a simplified and smaller sample database helpful for those new to relational database technology.
  • The SQL Azure OLTP database is a SQL Azure version of the AdventureWorks2012 database.

How To

Released: AdventureWorks Databases – 2012, 2008R2 and 2008 (Aug 28, 2012)

$
0
0
Each zip file contains the database (mdf) file and log (ldf) file for AdventureWorks 2012, 2008R2 and 2008.

An AdventureWorks database can be installed by attaching the database, or using the CREATE DATABASE statement.

To attach an AdventureWorks database
  1. Download a database for your SQL Server version.
  2. Unzip the database (mdf) file and log (ldf) file.
  3. From Microsoft SQL Server Management Studio, connect to a SQL Server instance.
  4. Right click Databases.
  5. Click Attach.
  6. Click the Add button.
  7. Locate the AdventureWorks database mdf file. For instance, AdventureWorks2012_Data.mdf.
  8. Click the OK button on the Locate Database Files dialog window.
  9. Click the OK button on the Attach Databases dialog window to attach the database.
CREATE DATABASE statement
From SQL Server Management Studio, execute the following code:

CREATE DATABASE {Database Name} ON (FILENAME = {drive}:\{file path}\{Database File Name}.mdf'),(FILENAME = {drive}:\{file path}\{Database File Name}.ldf') FOR ATTACH;

Note
  • Replace {Database Name} with the name of the database. The name of the database is the first part of the mdf file name before the underscore. For example, AdventureWorks2012 in AdventureWorks2012_Data.mdf.
  • Replace {Database File Name} with the name of the database file. For example, AdventureWorks2012_Data.

Example showing {Database Name} and {Database File Name}
CREATE DATABASE AdventureWorks2012 ON (FILENAME = {drive}:\{file path}\ AdventureWorks2012_Data.mdf'),(FILENAME = {drive}:\{file path}\AdventureWorks2012_Log.ldf') FOR ATTACH;

Updated Release: AdventureWorks Databases – 2012, 2008R2 and 2008 (Aug 28, 2012)

$
0
0
Each zip file contains the database (mdf) file and log (ldf) file for AdventureWorks 2012, 2008R2 and 2008.

An AdventureWorks database can be installed by attaching the database, or using the CREATE DATABASE statement.

To attach an AdventureWorks database
  1. Download a database for your SQL Server version.
  2. Unzip the database (mdf) file and log (ldf) file.
  3. From Microsoft SQL Server Management Studio, connect to a SQL Server instance.
  4. Right click Databases.
  5. Click Attach.
  6. Click the Add button.
  7. Locate the AdventureWorks database mdf file. For instance, AdventureWorks2012_Data.mdf.
  8. Click the OK button on the Locate Database Files dialog window.
  9. Click the OK button on the Attach Databases dialog window to attach the database.
CREATE DATABASE statement
From SQL Server Management Studio, execute the following code:

CREATE DATABASE {Database Name} ON (FILENAME = {drive}:\{file path}\{Database File Name}.mdf'),(FILENAME = {drive}:\{file path}\{Database File Name}.ldf') FOR ATTACH;

Note
  • Replace {Database Name} with the name of the database. The name of the database is the first part of the mdf file name before the underscore. For example, AdventureWorks2012 in AdventureWorks2012_Data.mdf.
  • Replace {Database File Name} with the name of the database file. For example, AdventureWorks2012_Data.

Example showing {Database Name} and {Database File Name}
CREATE DATABASE AdventureWorks2012 ON (FILENAME = {drive}:\{file path}\ AdventureWorks2012_Data.mdf'),(FILENAME = {drive}:\{file path}\AdventureWorks2012_Log.ldf') FOR ATTACH;

Commented Issue: AdventureWorks2008 [18544]

$
0
0
I need the MDF of this Project and I can't find it. The only available download is AdventureWorks2008R2 and this is not compatible with my machine. Can you help me? Thank you.
Comments: ** Comment from web user: SpaceInvaders81 **

thanks sir. I'll try this later on:
Please try the script at http://msftdbprodsamples.codeplex.com/releases/view/89502. I'm working on getting an MDF data file posted soon.

Released: AdventureWorks Databases – 2012, 2008R2 and 2008 (Aug 28, 2012)

$
0
0
For each release of the product, there is a light-weight and full version of the AdventureWorks sample database. The light-weight version is denoted by the LT abbreviation in the filename.

Each zip file contains the database (mdf) file and log (ldf) file for AdventureWorks 2012, 2008R2 and 2008.

An AdventureWorks database can be installed by attaching the database, or using the CREATE DATABASE statement.

To attach an AdventureWorks database
  1. Download a database for your SQL Server version.
  2. Unzip the database (mdf) file and log (ldf) file.
  3. From Microsoft SQL Server Management Studio, connect to a SQL Server instance.
  4. Right click Databases.
  5. Click Attach.
  6. Click the Add button.
  7. Locate the AdventureWorks database mdf file. For instance, AdventureWorks2012_Data.mdf.
  8. Click the OK button on the Locate Database Files dialog window.
  9. Click the OK button on the Attach Databases dialog window to attach the database.
CREATE DATABASE statement
From SQL Server Management Studio, execute the following code:

CREATE DATABASE {Database Name} ON (FILENAME = {drive}:\{file path}\{Database File Name}.mdf'),(FILENAME = {drive}:\{file path}\{Database File Name}.ldf') FOR ATTACH;

Note
  • Replace {Database Name} with the name of the database. The name of the database is the first part of the mdf file name before the underscore. For example, AdventureWorks2012 in AdventureWorks2012_Data.mdf.
  • Replace {Database File Name} with the name of the database file. For example, AdventureWorks2012_Data.

Example showing {Database Name} and {Database File Name}
CREATE DATABASE AdventureWorks2012 ON (FILENAME = {drive}:\{file path}\ AdventureWorks2012_Data.mdf'),(FILENAME = {drive}:\{file path}\AdventureWorks2012_Log.ldf') FOR ATTACH;

Updated Release: AdventureWorks Databases – 2012, 2008R2 and 2008 (Aug 28, 2012)

$
0
0
For each release of the product, there is a light-weight and full version of the AdventureWorks sample database. The light-weight version is denoted by the LT abbreviation in the filename.

Each zip file contains the database (mdf) file and log (ldf) file for AdventureWorks 2012, 2008R2 and 2008.

An AdventureWorks database can be installed by attaching the database, or using the CREATE DATABASE statement.

To attach an AdventureWorks database
  1. Download a database for your SQL Server version.
  2. Unzip the database (mdf) file and log (ldf) file.
  3. From Microsoft SQL Server Management Studio, connect to a SQL Server instance.
  4. Right click Databases.
  5. Click Attach.
  6. Click the Add button.
  7. Locate the AdventureWorks database mdf file. For instance, AdventureWorks2012_Data.mdf.
  8. Click the OK button on the Locate Database Files dialog window.
  9. Click the OK button on the Attach Databases dialog window to attach the database.
CREATE DATABASE statement
From SQL Server Management Studio, execute the following code:

CREATE DATABASE {Database Name} ON (FILENAME = {drive}:\{file path}\{Database File Name}.mdf'),(FILENAME = {drive}:\{file path}\{Database File Name}.ldf') FOR ATTACH;

Note
  • Replace {Database Name} with the name of the database. The name of the database is the first part of the mdf file name before the underscore. For example, AdventureWorks2012 in AdventureWorks2012_Data.mdf.
  • Replace {Database File Name} with the name of the database file. For example, AdventureWorks2012_Data.

Example showing {Database Name} and {Database File Name}
CREATE DATABASE AdventureWorks2012 ON (FILENAME = {drive}:\{file path}\ AdventureWorks2012_Data.mdf'),(FILENAME = {drive}:\{file path}\AdventureWorks2012_Log.ldf') FOR ATTACH;

Reviewed: AdventureWorks Databases – 2012, 2008R2 and 2008 (Aug 29, 2012)

$
0
0
Rated 5 Stars (out of 5) - Derrick - Can you please tell us what has changed in this release? Thanks.

Released: AdventureWorks Databases – 2012, 2008R2 and 2008 (Aug 28, 2012)

$
0
0
About this release
This release consolidates AdventureWorks databases for SQL Server 2012, 2008R2 and 2008 versions to one page. Each zip file contains an mdf database file and ldf log file. This should make it easier to find and download AdventureWorks databases since all OLTP versions are on one page. There are no database schema changes.

For each release of the product, there is a light-weight and full version of the AdventureWorks sample database. The light-weight version is denoted by the LT abbreviation in the filename.

An AdventureWorks database can be installed by attaching the database, or using the CREATE DATABASE statement.

To attach an AdventureWorks database
  1. Download a database for your SQL Server version.
  2. Unzip the database (mdf) file and log (ldf) file.
  3. From Microsoft SQL Server Management Studio, connect to a SQL Server instance.
  4. Right click Databases.
  5. Click Attach.
  6. Click the Add button.
  7. Locate the AdventureWorks database mdf file. For instance, AdventureWorks2012_Data.mdf.
  8. Click the OK button on the Locate Database Files dialog window.
  9. Click the OK button on the Attach Databases dialog window to attach the database.
CREATE DATABASE statement
From SQL Server Management Studio, execute the following code:

CREATE DATABASE {Database Name} ON (FILENAME = {drive}:\{file path}\{Database File Name}.mdf'),(FILENAME = {drive}:\{file path}\{Database File Name}.ldf') FOR ATTACH;

Note
  • Replace {Database Name} with the name of the database. The name of the database is the first part of the mdf file name before the underscore. For example, AdventureWorks2012 in AdventureWorks2012_Data.mdf.
  • Replace {Database File Name} with the name of the database file. For example, AdventureWorks2012_Data.

Example showing {Database Name} and {Database File Name}
CREATE DATABASE AdventureWorks2012 ON (FILENAME = {drive}:\{file path}\ AdventureWorks2012_Data.mdf'),(FILENAME = {drive}:\{file path}\AdventureWorks2012_Log.ldf') FOR ATTACH;

Updated Release: AdventureWorks Databases – 2012, 2008R2 and 2008 (Aug 28, 2012)

$
0
0
About this release
This release consolidates AdventureWorks databases for SQL Server 2012, 2008R2 and 2008 versions to one page. Each zip file contains an mdf database file and ldf log file. This should make it easier to find and download AdventureWorks databases since all OLTP versions are on one page. There are no database schema changes.

For each release of the product, there is a light-weight and full version of the AdventureWorks sample database. The light-weight version is denoted by the LT abbreviation in the filename.

An AdventureWorks database can be installed by attaching the database, or using the CREATE DATABASE statement.

To attach an AdventureWorks database
  1. Download a database for your SQL Server version.
  2. Unzip the database (mdf) file and log (ldf) file.
  3. From Microsoft SQL Server Management Studio, connect to a SQL Server instance.
  4. Right click Databases.
  5. Click Attach.
  6. Click the Add button.
  7. Locate the AdventureWorks database mdf file. For instance, AdventureWorks2012_Data.mdf.
  8. Click the OK button on the Locate Database Files dialog window.
  9. Click the OK button on the Attach Databases dialog window to attach the database.
CREATE DATABASE statement
From SQL Server Management Studio, execute the following code:

CREATE DATABASE {Database Name} ON (FILENAME = {drive}:\{file path}\{Database File Name}.mdf'),(FILENAME = {drive}:\{file path}\{Database File Name}.ldf') FOR ATTACH;

Note
  • Replace {Database Name} with the name of the database. The name of the database is the first part of the mdf file name before the underscore. For example, AdventureWorks2012 in AdventureWorks2012_Data.mdf.
  • Replace {Database File Name} with the name of the database file. For example, AdventureWorks2012_Data.

Example showing {Database Name} and {Database File Name}
CREATE DATABASE AdventureWorks2012 ON (FILENAME = {drive}:\{file path}\ AdventureWorks2012_Data.mdf'),(FILENAME = {drive}:\{file path}\AdventureWorks2012_Log.ldf') FOR ATTACH;

Created Issue: AdventureWorks Databases – 2012, 2008R2 and 2008 [18559]

$
0
0
Hello,

I uploaded AdventureWorks databases for 2012, 2008R2 and 2008 to http://msftdbprodsamples.codeplex.com/releases/view/93587. This release consolidates AdventureWorks databases for SQL Server 2012, 2008R2 and 2008 versions to one page. Each zip file contains an mdf database file and ldf log file. This should make it easier for you to find, download, and attach the AdventureWorks databases. There are no database schema changes.

Reviewed: Adventure Works for SQL Azure (Aug 30, 2012)

$
0
0
Rated 1 Stars (out of 5) - The SalesOrderHeader.SalesOrderID primary key does not line up with the SalesOrderDetail.SalesOrderID

Updated Release: AdventureWorks OData Feed (Sep 05, 2012)

$
0
0
The AdventureWorks OData service exposes resources based on specific SQL views. The SQL views are a limited subset of the AdventureWorks database that results in several consuming scenarios:
  • CompanySales
  • Documents
  • ManufacturingInstructions
  • ProductCatalog
  • TerritorySalesDrilldown
  • WorkOrderRouting
How to install the sample
You can consume the AdventureWorks OData feed from http://services.odata.org/AdventureWorksV3/AdventureWorks.svc.

You can also consume the AdventureWorks OData feed by running the sample service from a local ASP.NET Development Server.

To run the service on a local ASP.NET Development Server
  1. Download the sample.
  2. Attach the AdventureWorks2012 database. The AdventureWorks2012 database can be downloaded from http://msftdbprodsamples.codeplex.com/releases/view/93587
  3. From Microsoft SQL Server Management Studio, run \AdventureWorks.OData.Service\SQL Scripts\Views.sql to create the OData feed SQL views.
  4. Open \AdventureWorks.OData.Service\AdventureWorks.OData.Service.sln in Visual Studio 2012.
  5. In Solution Explorer, select AdventureWorks.svc.
  6. Press F5 to run the service on http://localhost:1234/AdventureWorks.svc/.

Updated Wiki: AdventureWorks OData feed

$
0
0

Overview

As a continuation of my previous blog post, we created a live AdventureWorks OData feed at http://services.odata.org/AdventureWorksV3/AdventureWorks.svc. The AdventureWorks OData service exposes resources based on specific SQL views. The SQL views are a limited subset of the AdventureWorks database that results in several consuming scenarios:

  • CompanySales
  • Documents
  • ManufacturingInstructions
  • ProductCatalog
  • TerritorySalesDrilldown
  • WorkOrderRouting

We will be iterating on this sample, so expect it to improve over time. For instance, the Documents feed currently exposes the document entity type property as an Edm.Binary type. An upcoming iteration will show how to implement Named Resource Streams for the Documents.Document entity type property.

User Story

This sample iteration addresses the following user story:

As a backend developer, I want to only allow views of the AdventureWorks2012 database to be exposed as an OData public resource so that the underlying schema can be modified without affecting the service.

Source Download

Install the sample

You can consume the AdventureWorks OData feed from http://services.odata.org/AdventureWorksV3/AdventureWorks.svc. You can also consume the AdventureWorks OData feed by running the sample service from a local ASP.NET Development Server.

To run the service on a local ASP.NET Development Server

  1. Download the sample from this blog or {CodePlex}.
  2. Attach the AdventureWorks2012 database. The AdventureWorks2012 database can be downloaded from http://msftdbprodsamples.codeplex.com/releases/view/93587
  3. From Microsoft SQL Server Management Studio, run \AdventureWorks.OData.Service\SQL Scripts\Views.sql to create the OData feed SQL views.
  4. Open \AdventureWorks.OData.Service\AdventureWorks.OData.Service.sln in Visual Studio 2012.
  5. In Solution Explorer, select AdventureWorks.svc.
  6. Press F5 to run the service on http://localhost:1234/AdventureWorks.svc/.

Released: AdventureWorks OData Feed (Sep 05, 2012)

$
0
0
The AdventureWorks OData service exposes resources based on specific SQL views. The SQL views are a limited subset of the AdventureWorks database that results in several consuming scenarios:
  • CompanySales
  • Documents
  • ManufacturingInstructions
  • ProductCatalog
  • TerritorySalesDrilldown
  • WorkOrderRouting
How to install the sample
You can consume the AdventureWorks OData feed from http://services.odata.org/AdventureWorksV3/AdventureWorks.svc.

You can also consume the AdventureWorks OData feed by running the sample service from a local ASP.NET Development Server.

To run the service on a local ASP.NET Development Server
  1. Download the sample.
  2. Attach the AdventureWorks2012 database. The AdventureWorks2012 database can be downloaded from http://msftdbprodsamples.codeplex.com/releases/view/93587
  3. From Microsoft SQL Server Management Studio, run \AdventureWorks.OData.Service\SQL Scripts\Views.sql to create the OData feed SQL views.
  4. Open \AdventureWorks.OData.Service\AdventureWorks.OData.Service.sln in Visual Studio 2012.
  5. In Solution Explorer, select AdventureWorks.svc.
  6. Press F5 to run the service on http://localhost:1234/AdventureWorks.svc/.

Updated Release: AdventureWorks OData Feed (Sep 05, 2012)

$
0
0
The AdventureWorks OData service exposes resources based on specific SQL views. The SQL views are a limited subset of the AdventureWorks database that results in several consuming scenarios:
  • CompanySales
  • Documents
  • ManufacturingInstructions
  • ProductCatalog
  • TerritorySalesDrilldown
  • WorkOrderRouting
How to install the sample
You can consume the AdventureWorks OData feed from http://services.odata.org/AdventureWorksV3/AdventureWorks.svc.

You can also consume the AdventureWorks OData feed by running the sample service from a local ASP.NET Development Server.

To run the service on a local ASP.NET Development Server
  1. Download the sample.
  2. Attach the AdventureWorks2012 database. The AdventureWorks2012 database can be downloaded from http://msftdbprodsamples.codeplex.com/releases/view/93587
  3. From Microsoft SQL Server Management Studio, run \AdventureWorks.OData.Service\SQL Scripts\Views.sql to create the OData feed SQL views.
  4. Open \AdventureWorks.OData.Service\AdventureWorks.OData.Service.sln in Visual Studio 2012.
  5. In Solution Explorer, select AdventureWorks.svc.
  6. Press F5 to run the service on http://localhost:1234/AdventureWorks.svc/.

Updated Wiki: Home

$
0
0

(New) Download AdventureWorks Databases – 2008, 2008R2 and 2012

Our current project: AdventureWorks OData feed

AdventureWorks OLTP database for SQL Server 2012 AdventureWorks DW database for SQL Server 2012 SQLAzure Get more information
AdventureWorks OLTP database for SQL Server 2008 R2 AdventureWorks DW database for SQL Server 2008 R2 Feedback Questions

AdventureWorksLT Databases: AdventureWorksLT 2012 | AdventureWorksLT 2008R2.

Summary

  • The AdventureWorks OLTP database supports standard online transaction processing scenarios for a fictitious bicycle manufacturer (Adventure Works Cycles). Scenarios include Manufacturing, Sales, Purchasing, Product Management, Contact Management, and Human Resources.
  • The AdventureWorks DW database demonstrates how to build a data warehouse.
  • The AdventureWorks LT database is a simplified and smaller sample database helpful for those new to relational database technology.
  • The SQL Azure OLTP database is a SQL Azure version of the AdventureWorks2012 database.

How To

Commented Issue: AdventureWorks Databases – 2012, 2008R2 and 2008 [18559]

$
0
0
Hello,

I uploaded AdventureWorks databases for 2012, 2008R2 and 2008 to http://msftdbprodsamples.codeplex.com/releases/view/93587. This release consolidates AdventureWorks databases for SQL Server 2012, 2008R2 and 2008 versions to one page. Each zip file contains an mdf database file and ldf log file. This should make it easier for you to find, download, and attach the AdventureWorks databases. There are no database schema changes.
Comments: ** Comment from web user: brendataylor **

Hi
I downloaded the AdventureWorks 2012 DB and tried to attach it to my SQL management Studio 2012 running on the RTM Win 8 OS and it says :


The database 'AdventureWorksLT2012' cannot be opened because it is version 706. This server supports version 655 and earlier. A downgrade path is not supported.
Could not open new database 'AdventureWorksLT2012'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 948)

The version of SQL Management Studio I have is
Microsoft SQL Server Management Studio 11.0.2100.60
Microsoft Data Access Components (MDAC) 6.2.9200.16384
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.10.9200.16384
Microsoft .NET Framework 4.0.30319.17929
Operating System 6.2.9200


Any ideas why this should happen, I sort of expected the latest release of adventureworks to work with the latest version of SQL man studio. I have checked for a later release of SQL Man. studio and there doesn't seem to be one.

Brenda

Viewing all 630 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>