Showing posts with label missing. Show all posts
Showing posts with label missing. Show all posts

Thursday, March 22, 2012

AdventureWorks OLAP Cubes samples missing

Hi there,

I am setting up a demo with Scorecard Manager 2005. After days of struggle, the installation seems to be fine, I can publish all the two dimensional scorecards. But the sample AdventureWorks OLAP cubes do not seem to be accessible or they don't exist - to be more exact, Scorecard Manager is able to log on to the SQL Server database called AdventureWorksDW, but cannot find any cubes.

I downloaded the latest SQL Server 2005 samples here and followed all the instructions to the letter. I did not get any errors while deoplying the AdventureWorks solution in the Business Intelligence Development Studio. One concern related to the samples is that the AdventureWorksAS sample is not available. I thought that the DW database is used there, am I wrong?

I think that I'm missing some key element in deploying the sample OLAP cubes. Is there a way to check that they are made correctly? What application do I best use to peform this check?

I am running Server 2003, SP1, SQL Server 2005 SP1 with Analysis/Reporting/Integration services installed, SharePoint Server 2003 SP2 (all applications are running fine so far on it).

Thank you very much, Radu

PS: I just discovered and error posted by the Event Viewer. It seems that the system admin does not have authority to view ADOMD sources. How can I debug this error? This is a demo setup on a virtual PC so I gave all authorities to Admin from the initial setup and the AdventureWorksDW database exists (the Scorecard Manager app. does find the database, but cannot see any cubes and this is when the error shows up in the Event Viewer).

Here are the error details:

Microsoft.AnalysisServices.AdomdClient.AdomdErrorResponseException: Either the user, NT AUTHORITY\SYSTEM, does not have access to the Adventure Works DW database, or the database does not exist.
at Microsoft.AnalysisServices.AdomdClient.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection+IXmlaClientProviderEx.Discover(String requestType, IDictionary restrictions, Boolean throwOnErrors, Boolean sendNamespaceCompatibility)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.GetProperty(String propName)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.SetProperty(String propertyName, String propValue)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ChangeDatabase(String database)
at Microsoft.PerformanceManagement.Scorecards.Server.OlapUtils.GetCubeNames(String databaseName)
at Microsoft.PerformanceManagement.Scorecards.Server.PmServer.GetCubeNames(DataSource dataSource)

I figured it out: there seems to be a mistake in the Scorecard Manager 2005 OLAP cubes samples' settings (the Adventure Works DW samples available here). If you open a scorecard's Data Source (in the Scorecard Builder), you need to erase any Database Roles. The samples come with 'All Users' set, but trying 'Reader' only for example, which is what is needed based on installation instructions, does not work.

Thanks to Ian Tien's site; I downloaded his Adventure Works DW samples, which are based on the 10 Analysis Services' tutorial cubes, and looked at his scorecard's configuration.

I guess this message is more for a Scorecard Manager 2005 board, but I couldn't find one on this MSDN forum site. But Analysis Services are inseparable from Scorecard, so I hope it helps someone.

AdventureWorks database question

How can I install theAdventureWorks database on my box where C:\Program Files\Microsoft SQL Server\90\Tools\Samples\ is missing? My SQL 2005 is currently without AdventureWorks OLT. I downloaded the Enterprise trial before uninstalling SQL2005Express. Please help. Thanks.

It looks like the AdventureWorks database can be downloadedhere.

HTH,
Ryan

|||

As I did the following:

exec

sp_attach_db @.dbname=N'AdventureWorks', @.filename1=N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf', @.filename2=N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_log.ldf'

Here's what came back:

Msg 1813, Level 16, State 2, Line 1

Could not open new database 'AdventureWorks'. CREATE DATABASE is aborted.

Msg 602, Level 21, State 50, Line 1

Could not find row in sysindexes for database ID 24, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes.

What's wrong here?

Any help is greatly appreciated.

|||

Find instawdb.sql and execute it. This will open "SQL server manegament studio. Enter localhost for servername then click connect. On the sql editor toolbar click execute. wait until get the message "database installed succesfully" in the status bar.

|||

When I do that I get the following error messages:

Microsoft SQL Server 2000 - 8.00.194 (Intel X86)

Aug 6 2000 00:57:48

Copyright (c) 1988-2000 Microsoft Corporation

Personal Edition on Windows NT 5.1 (Build 2600: Service Pack 2)

*** Dropping Database

Msg 208, Level 16, State 1, Line 2

Invalid object name 'master.sys.databases'.

*** Creating Database

Msg 208, Level 16, State 1, Line 5

Invalid object name 'master.sys.master_files'.

Msg 102, Level 15, State 6, Line 11

Incorrect syntax near 'CHECKSUM'.

Msg 911, Level 16, State 1, Line 2

Could not locate entry in sysdatabases for database 'AdventureWorksDW'. No entry found with that name. Make sure that the name is entered correctly.

*** Creating DDL Trigger for Database

Msg 170, Level 15, State 1, Line 9

Line 9: Incorrect syntax near 'max'.

Msg 156, Level 15, State 1, Procedure ddlDatabaseTriggerLog, Line 3

Incorrect syntax near the keyword 'DATABASE'.

Msg 195, Level 15, State 10, Procedure ddlDatabaseTriggerLog, Line 14

'EVENTDATA' is not a recognized function name.

Msg 170, Level 15, State 1, Procedure ddlDatabaseTriggerLog, Line 15

Line 15: Incorrect syntax near '.'.

Msg 170, Level 15, State 1, Procedure ddlDatabaseTriggerLog, Line 16

Line 16: Incorrect syntax near '.'.

Msg 170, Level 15, State 1, Procedure ddlDatabaseTriggerLog, Line 17

Line 17: Incorrect syntax near '.'.

Msg 170, Level 15, State 1, Procedure ddlDatabaseTriggerLog, Line 25

Line 25: Incorrect syntax near 'max'.

Msg 170, Level 15, State 1, Procedure ddlDatabaseTriggerLog, Line 44

Line 44: Incorrect syntax near '.'.

*** Creating Tables

Msg 2714, Level 16, State 6, Line 2

There is already an object named 'AdventureWorksDWBuildVersion' in the database.

Msg 170, Level 15, State 1, Line 80

Line 80: Incorrect syntax near 'max'.

*** Loading Data

Msg 208, Level 16, State 1, Line 6

Invalid object name 'master.sys.master_files'.

Msg 1779, Level 16, State 0, Line 2

Table 'DimAccount' already has a primary key defined on it.

Msg 1750, Level 16, State 0, Line 2

Could not create constraint. See previous errors.

Msg 1913, Level 16, State 1, Line 2

There is already an index on table 'DimAccount' named 'AK_DimAccount_AccountCodeAlternateKey'.

*** Creating Foreign Key Constraints

Msg 2714, Level 16, State 4, Line 2

There is already an object named 'FK_DimAccount_DimAccount' in the database.

Msg 1750, Level 16, State 0, Line 2

Could not create constraint. See previous errors.

*** Creating Table Views

Msg 170, Level 15, State 1, Procedure vDMPrep, Line 48

Line 48: Incorrect syntax near ';'.

Msg 170, Level 15, State 1, Procedure vTimeSeries, Line 41

Line 41: Incorrect syntax near ';'.

Msg 170, Level 15, State 1, Procedure vTargetMail, Line 62

Line 62: Incorrect syntax near ';'.

Msg 208, Level 16, State 1, Procedure vAssocSeqOrders, Line 7

Invalid object name 'dbo.vDMPrep'.

Msg 170, Level 15, State 1, Procedure vAssocSeqLineItems, Line 12

Line 12: Incorrect syntax near ';'.

*** Creating Functions

Msg 2714, Level 16, State 5, Procedure udfMinimumDate, Line 15

There is already an object named 'udfMinimumDate' in the database.

*** Disabling DDL Trigger for Database

Msg 156, Level 15, State 1, Line 2

Incorrect syntax near the keyword 'TRIGGER'.

*** Changing File Growth Values for Database

Msg 911, Level 16, State 1, Line 2

Could not locate entry in sysdatabases for database 'AdventureWorksDW'. No entry found with that name. Make sure that the name is entered correctly.

*** Shrinking Database

Msg 2520, Level 16, State 12, Line 2

Could not find database 'AdventureWorksDW'. Check sysdatabases.

DBCC execution completed. If DBCC printed error messages, contact your system administrator.

And on that download link none of those will install either, they installation stops with an error.