Solved

Can't login to AdventureWorks DB within Analysis Services tutorial

Posted on 2008-06-10
8
1,253 Views
Last Modified: 2010-04-21
I am an absolute newbie at MS SQL Server 2005, and I'm trying to work my way through the Analysis Services Tutorial to get a feel for how BI works in SQL Server. First thing I  noticed was that the AdventureWorks database that is used in the tutorial is NOT installed by default; I tried installing it from the disk, which failed, so I ended up downloading the .msi flles from the web and installing it that way.

Following the tutorial, I went about adding the AdventureWorks db as a data source. The db did not appear in the dropdown  of available databases, so I typed in the name manually, which seemed to work. The next step required me to add AdventureWorks as a Data Source View, but when I try to do this, I get the following message:

TITLE: Microsoft SQL Native Client
------------------------------

Login failed for user 'DSI\tipperp'.
Cannot open database "AdventureWorksDW" requested by the login. The login failed.

Also, in the Server Management Studio, the AdventureWorks database does NOT appear in the list of available databases.

Can anyone suggest what I need to do to make AdventureWorks appear, and how I set access permissions to this database so I can log in to it using my domain name and password?
0
Comment
Question by:paul_tipper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 21750422
Are you sure you attached/installed the database?
0
 

Author Comment

by:paul_tipper
ID: 21750429
BTW, I wasn't able to use the solution provided in the related question above as I don't have "Veritas Backup Services" installed, and I don't really understood how doing what was done in this solution solved the problem.
0
 

Author Comment

by:paul_tipper
ID: 21750437
Well, I installed the database from the .msi installation file - was there anything else I should have done? How do you "attach" the database? (I really AM a newbie at MS SQL Server!)
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 60

Expert Comment

by:chapmandew
ID: 21750487
Do a search on yoru machine to see where the install placed the .mdf and .ldf file...you're going to need to attach these.  
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21750488
Forgot..once you find where these files are, post the locations on here...I'll write the attach script for you.
0
 

Author Comment

by:paul_tipper
ID: 21750820
OK, the files are in the C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data directory. The relevant files found were:

AdventureWorksDW_Data.mdf
AdventureWorksDW_Log.LDF
AdventureWorks_Data.mdf
AdventureWorks_Log.ldf
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 21750841
OK...here you go.  Run this in a new query window.

EXEC sp_attach_db @dbname = N'AdventureWorksDW',
    @filename1 = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorksDW_Data.mdf',
    @filename2 = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorksDW_Log.LDF' ;
0
 

Author Closing Comment

by:paul_tipper
ID: 31465696
Perfect - worked a treat, thanks a million!

You'd think installing the db from the .msi file would attached it automatically, wouldn't you?
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question