Vous êtes sur la page 1sur 13

Purpose The following sample databases are currently available for Microsoft SQL Server 2005 and Microsoft

SQL Server 2008: The AdventureWorks OLTP database supports standard online transaction processing scenarios for a ficticious bicycle manufacturer (Adventure Works Cycles). Scenarios include Manufacturing, Sales, Purchasing, Product Management, Contact Management, and Human Resources. The Adventure Works DW database demonstrates how to build a data warehouse. The Adventure Works AS project can be used to build an AS database for business intelligence scenarios. The Adventure Works LT database is a highly simplified and smaller sample database which is helpful for those who are new to relational database technology.

Fajl AdventureWorks2008R2_RTM.exe moete da skinete sa:

http://msftdbprodsamples.codeplex.com/releases/view/45907

The current release (currently labeled SQL Server 2008R2 RTM) contains two families of sample databases -- AdventureWorks and AdventureWorks2008R2. The AdventureWorks family is schema compatible with the sample databases for SQL Server 2005. The AdventureWorks2008R2 family has breaking schema changes in order to support some new scenarios and demonstrate new features in SQL Server 2008R2. The samples databases from SQL Server 2008R2 RTM will not install correctly on SQL Server 2005. Please use the installers in the SQL Server 2005 SP2a release for that. For step by step instructions on how to configure the prequisites that are needed before you can install the sample databases for SQL Server 2008R2 see Database Prerequisites. For step by step installation instructions on how to install all the sample databases for SQL Server 2008, see Installing Databases. The AdventureWorks2008R2 family of sample databases are described below. All databases use the default server collation.

AdventureWorks 2008R2 Family Sample database with "2008R2" in their name are part of the AdventureWorks 2008R2 sample database family.
The AdventureWorks 2008R2 family of databases demonstrates some of the new features of SQL Server 2008R2. This family of databases can only be used with SQL Server 2008 and SQL Server 2008R2 and will not install successfully for earlier versions of SQL Server. The table below lists the sample databases in this family:

Database Name AdventureWorks2008R2

Description The new OLTP database designed for SQL Server 2008R2

Details Details Details

AdventureWorksDW2008R2 The new data warehouse designed for SQL Server 2008R2 AdventureWorksAS2008R2 AdventureWorksLT2008R2

The new analysis services database designed for SQL Server 2008R2 Available now The new light version of the OLTP database for SQL Server 2008R2 Available now

We recommend that samples, books, and other training material which was originally targeted for SQL Server 2005 or earlier be updated to use the AdventureWorks 2008R2 family of databases within the next two years. Support for the AdventureWorks family of sample databases will end when the next major release after SQL Server 2008R2 ships.

Installation Prerequisites for the SQL Server 2008 and 2008R2 Sample Databases Before you install the AdventureWorks 2008 and 2008R2 family of sample databases: Some edition of SQL Server 2008 or SQL Server 2008R2 must be installed. If installing on Windows XP or Windows Server 2003, the SQL Server service account must be something other than NT Authority\Network Service (Local System will do). In order to be able to successfully install the AdventureWorks2008 or AdventureWorks2008R2 (OLTP) database the following additional requirements must be met:

At least SQL Server Express with Advanced Services must be installed. Ordinary SQL Server Express will not work. You can download SQL Server 2008 Express with Advanced Services from the Microsoft Download Center. FILESTREAM must be enabled and the SQL Full-text Filter Daemon Launcher service must be running. See below for how to configure these features. In order to successfully deploy the Analysis Services databases after installation, SQL Server Standard, SQL Server Enterprise, or SQL Server Developer are required. Note that this deployment must be done manually using Business Intelligence Development Studio after installation is complete. How to install the prerequisites on an existing installation of SQL Server Installing Full-Text Search Note If Full-Text Search is already installed, but the SQL Full-text Filter Daemon Launcher service is not running, the installation will fail with a message that the Full-Text Search feature is missing. Therefore, if you already have Full-Text Search installed, follow the procedure to enable the SQL Full-text Filter Daemon Launcher Service. 1. 2. 3. To install Full-Text Search, you must run SQL Server Setup. When you do, select the New SQL Server stand-alone installation or add features to an existing installation installation option. When you get to the Installation Type page, select Add features to an existing instance of SQL Server 2008 , select the instance name, and then click Next. When you get to the Feature Selection page, under the Instance Features/Database Engine Services node, select the Full-Text Search check box, click Next, and then complete the rest of the pages in the wizard.

Enabling the SQL Full-text Filter Daemon Launcher Service 1. 2. 3. 4. 5. 6. 7. Click Start, point to All Programs, point to Microsoft SQL Server 2008, point to Configuration Tools, and then click SQL Server Configuration Manager. In the left pane, click SQL Server Services. In the list of services, right-click SQL Full-text Filter Daemon Launcher for the instance that you are configuring, and then click Properties. Click the Service tab. Next to Start Mode, click Disabled, and then click Automatic in the list that appears. Click OK. Right-click SQL Full-text Filter Daemon Launcher for the instance that you are configuring, and then click Start.

Enabling FILESTREAM For information about how to enable FILESTREAM, see How to: Enable FILESTREAM in SQL Server Books Online.

OVDE JE IZVUEN TEKST IZ HELPA KAKO enable -ovati FILESTREAM: How to: Enable FILESTREAM Before you can start to use FILESTREAM, you must enable FILESTREAM on the instance of the SQL Server Database Engine. This topic describes how to enable FILESTREAM by using SQL Server Configuration Manager. To enable and change FILESTREAM settings 1. On the Start menu, point to All Programs, point to Microsoft SQL Server 2008 R2, point to Configuration Tools, and then click SQL Server Configuration Manager. 2. In the list of services, right-click SQL Server Services, and then click Open. 3. In the SQL Server Configuration Manager snap-in, locate the instance of SQL Server on which you want to enable FILESTREAM. 4. Right-click the instance, and then click Properties. 5. In the SQL Server Properties dialog box, click the FILESTREAM tab. 6. Select the Enable FILESTREAM for Transact-SQL access check box. 7. If you want to read and write FILESTREAM data from Windows, click Enable FILESTREAM for file I/O streaming access. Enter the name of the Windows share in the Windows Share Name box. 8. If remote clients must access the FILESTREAM data that is stored on this share, select Allow remote clients to have streaming access to FILESTREAM data. 9. Click Apply. 10. In SQL Server Management Studio, click New Query to display the Query Editor. 11. In Query Editor, enter the following Transact-SQL code: Copy Code EXEC sp_configure filestream_access_level, 1 RECONFIGURE 12. Click Execute.

Note the following additional information: Steps 7 and 8 are optional. If you find that you need to enable FILESTREAM for file I/O streaming access, you can enable this option later. In step 11, the example sp_configure statement shows how to enable FILESTREAM for both Transact-SQL access and for file I/O streaming access. To enable FILESTREAM for Transact-SQL access only, issue the following statements: EXEC sp_configure filestream_access_level, 1 RECONFIGURE For more information about the access levels, see filestream access level in SQL Server Books Online.

How to install the prerequisites on a new installation of SQL Server If you want to install the prerequisites at the same time that you install a new instance of SQL Server, note the following information: 1. 2. You must install Full-Text Search during SQL Server Setup. To do this, when you get to the Feature Selection page of the Setup wizard, under the Instance Features/Database Engine Services node, make sure that the Full-Text Search check box is selected. You can enable FILESTREAM during installation. To do this, follow these steps: 1. 2. When you get to the Database Engine Configuration page, after you configure account provisioning and data directories, click the FILESTREAM tab. Select the Enable FILESTREAM for Transact-SQL access check box, and then click Next. (Note that if you use a sample that requires file I/O streaming access, you can enable the Enable FILESTREAM for file I/O streaming access option later. Also note that if you enable FILESTREAM during SQL Server Setup, you do not have to run the sp_configure stored procedure with the filestream_access_level option to enable FILESTREAM.)

3.

After the installation, you must enable the SQL Full-text Filter Daemon Launcher service.

Last edited Dec 10 2009 at 11:07 PM by bonniefe, version 3 Comments acorum1 Jun 21 at 11:48 PM Yea, did all this. Filestreamis up and running. Still won't install AdventureWorks OLTP 2008R2: Says it is not enabled. peterbernhardt Jun 22 at 3:28 PM acorum1, I had the same problem. But then I went back and followed the instructions in How to: Enable FILESTREAM. You need to enable FILESTREAM in the Sql Server Configuration Manager. Restart the SQL Server instance and you should be good to go. basba Jul 29 at 3:07 AM I can't find the "Full-Text Search " anywhere ?????? I only found the FileStream and that's it,, the full text-search is not under any node clairestreb Aug 11 at 9:27 AM basba, I use SQL Server 2008 R2 Express, and I downloaded Database with Advanced Services from http://www.microsoft.com/express/Database/InstallOptions.aspx, which is the only Express version that contains Full-Text Search persiannet Aug 29 at 3:35 AM OLTP over up my job

G1 Oct 10 at 9:39 AM To enable FullText Search.... run the Sql Server Installation Center" available in Configuration Tools" of the "Microsoft Sql Server 2008R2" programs group. Select the "Installation" category and "New installation or add..." You will need the Sql Server media or in my case a DVD Image referenced by MagicISO. The process examines your existing installation for suitability and downloads any need patches prior to allowing you to modify the existing configuration. After updating the installation and without notification of completion of that process, it will may prompt you to enter an instance name for a new installation at which point you can select to cancel the process. To enable the FILESTREAM option... my experience was that after enabling the FILESTREAM option (Configuration Manager, right click instance, select properties, select Advanced paged); ensuring that the launch service is configured to start "automatically" and is running (Sql Server Configuration Services (local)-> Sql Server Services-> Sql Fulltext Filter....); and restarting the server, the "running" status of the FILESTREAM option remain disable (there is a configuration/running button at the bottom of the settings page). However, the installation proceeded and appear to be successful. Perhaps rebooting my computer will update this value's running status

Installing SQL Server 2008R2 Sample Databases Note: By default Windows Server 2008 security is configured to prevent the download of these installers. Changing this security configuration is not recommended on production servers. Please see Windows Server documentation for information on how to change these settings. To install all the sample databases for SQL Server 2008 perform the following steps: 1. 2. 3. Ensure all prerequisites are met. See Database Prerequisites for detailed prerequisite instructions. Note that database installation will not complete unless all prerequisites are met. Using the object explorer in SSMS delete any earlier version of the AdventureWorks sample databases you may have installed. Using the file explorer ensure all .MDF and .LDF files have been deleted from the data directory for all sample databases in the instance you will be installing the new sample databases. For the default instance, the path to the data directory for OLTP, LT, and DW sample databases is typically C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA. Navigate to http://msftdbprodsamples.codeplex.com/releases/view/45907 Click on the AdventureWorks2008R2_RTM.exe link Read the license and if you agree to the conditions click I Agree. Click Run If an elevation prompt occurs click Yes. Respond to all the dialogs presented by the installer as detailed below.

4. 5. 6. 7. 8. 9.

Click the I agree license agreement check box, then click the Next button.

Use the pull down selector to choose the instance in which to install the sample databases.

While it is possible to change the directory where the scripts and data files will be installed, it is recommended that the default be used. If the directory is changed, be sure that the account the SQL Server service runs under has read access to this directory. Be sure to read all the content in this dialog. Uncheck any databases you do not wish to install. If there are warnings, click More Information links for additional information which can help you resolve the issues which prevent those databases from being installed. To copy the scripts and data files and install the selected databases press the Next button.

Scripts and data files are copied to the directory you selected in the previous dialog. Progress bars for the whole installation and progress for installing the current database are displayed along with status messages that change as the installation progresses. More status information can be displayed by clicking Show Details. If the installation has failed for any reason it is helpful to click Show Details to find out why. Any bugs filed should include all the details displayed which you can gather by typing control-a to select everything in the details text box, and control-c to copy all

the lines to the clipboard. The details can then be pasted in a bug you can create on the Issue Tracker tab at http://msftdbprodsamples.codeplex.com/.

When the installation is complete, click the Finish button. Temporary files will be deleted by the self-extracting zip file. The databases which were installed should be ready to browse and access using either SQL Server Management Studio or the SQLCMD tool.

SREDITI ANALISYS SERVICES INSTALACIJU :


The database installer for SQL Server 2008 and SQL Server 2008R2 does not automatically deploy the Analysis Services database. To deploy the analysis services database perform the following steps: 1. 2. 3. 4. Ensure that the SQL Server Analysis Services service account for the instance you will be deploying to has access to the instance where the AdventureWorksDW2008R2 sample database is stored, and also has access to that databases, and the account is at least a member of the db_datareader role for the AdventureWorksDW2008R2 sample database. Start Business Intelligence Development Studio by clicking Start / All Programs / Microsoft SQL Server / SQL Server Business Intelligence Development Studio. Click File / Open / Project/Solution Navigate to the appropriate folder containing the Analysis Services database solution. If the sample databases were installed to the default location: 1. For SQL Server 2008: 1. 2. 2. C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008 Analysis Services Project\standard\Adventure Works.sln will contain the solution for SQL Server Standard. C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008 Analysis Services Project\enterprise\Adventure Works.sln will contain the solution for SQL Server Enterprise and SQL Server Developer.

For SQL Server 2008R2: 1. 2. C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008R2 Analysis Services Project\standard\Adventure Works.sln will contain the solution for SQL Server Standard. C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008R2 Analysis Services Project\enterprise\Adventure Works.sln will contain the solution for SQL Server Enterprise and SQL Server Developer.

3. 5. 6. 7. Comments
smstrong Dec 15 2009 at 6:44 AM

Analysis Services databases are not supported on other editions of SQL Server.

After opening the solution, in the Solution Explorer double click the "Adventure Works.ds" data source. Click the Edit... button just below the Connection String box. Supply your SQL Server (database engine) server and instance name (if its a named instance). Click the Test Connection Button. If the test succeeds, click OK and OK to save the changes. Right click on the solution in Solution Explorer, choose Properties. On the Adventure Works DW 2008 SE Property Pages dialogue, choose the tree item for Deployment. Change the Target - Server property to your AS server name and instance name (if it is not a default instance). In the solution explorer click right on the solution (Solution 'Adventure Works') and click Deploy Solution

Last edited May 13 at 9:33 PM by bonniefe, version 7

Step 4b. Change the server name in Adventure Works.ds if using a named instance. e.g. localhost => myserver\myinstance
JasonWHowell Jan 13 at 12:23 AM

4c. After opening the solution, right click on the solution in Solution Explorer, choose Properties. On the Adventure Works DW 2008 SE Property Pages dialogue, choose the tree item for Deployment. Change the Target - Server property to your AS server name and instance name.
JasonWHowell Jan 13 at 12:29 AM

4b. After opening the solution, in your Solution Explorer, Find the "Adventure Works.ds" data source. Double click on it. See the Connection String box, and click the [Edit...] button just below. Supply your SQL Server (database engine) server and instance name (if its a named instance). Click the Test Connection Button. If the test succeeds, click OK and OK to save the changes. Go to step 4c.
ErikBo Mar 21 at 6:48 PM

7. Note that for the Deploy Solution to succeed the SQL Server Service Account should be granted rights on the databases used by the solution. e.g.: USE AdventureWorksDW2008R2 GO EXEC sp_addrolemember 'db_owner', '<your_sql_server_service_account>' GO
InternetUser999 May 27 at 12:15 AM

Following these instructions results in a failed deployment with 61 warnings and 1 error.
Saeedalhs Jun 22 at 9:16 AM

SQL Server Analysis Services must be running, check its status from SQL Server Configuration Manager.
MinorMata Jun 28 at 5:47 AM

If yuu have and Deplymend error, please try to change how the Anslysis service start. I tried changed to LocalSystem account and it works. The Deployment become succesfull.
jagksg Jul 7 at 7:29 PM

Installed per instructions with no issues. SSAS installed and deployed successfully. Done Deploy complete -- 0 errors, 0 warnings ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== ========== Deploy: 1 succeeded, 0 failed, 0 skipped ========== Great Job!
cbaker0220 Jul 8 at 12:47 AM

The LocalSystem account is what worked for me too, thanks MinorMata!


lmsc Jul 14 at 11:32 PM

The deployment is succesfull but i have 61 warnings! something wrong?


Hyousef Jul 22 at 1:18 AM

MinorMata : your solution worked, i used to have as as network service, but changing it to local did the trick
gev2gev Jul 24 at 8:59 AM

http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/221be6b0-d57f-4d2c-8f03-1ffa77b51541

aceboku Aug 31 at 5:34 PM

Deployment failed. Adjusted Adventure Works.ds to use "Log on to the server" - "Use SQL Server Authentication". I then inserted approriate user name and password which was different from my Windows Authentication. Deployment worked like a charm. Thanks!
vijaykumar13 Oct 5 at 10:14 PM

Thanks MinorMata Deployment had error, but as suggested by MinorMata changes to Localsystem and the deployment was a charm with a green check mark Deployment Completed Successfully. Vijay
5849 Oct 9 at 8:57 AM

I deploy the Analysis Services database unsuccessfully after I had downloaded the sample database for SQL Server 2008 R2,error message as below, Error 1 metadata Administrator errors. ' Sequence Clustering ~ MC ' Cube identifier of the reference to ' Sequence Clustering ~ MC-Order Number ', the name is ' Sequence Clustering ~ MC-Order Number ' dimension does not exist. There is an error in the metadata Manager. From the archives ' \\? \C: \Program Files\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Data\Adventure Works DW 2008R2 SE.0. db\Sequence Clustering ~ MC.1.cub.xml ' loading Sequence Clustering ~ MC cube. 0 0

Vous aimerez peut-être aussi