Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can't login to AdventureWorks DB within Analysis Services tutorial

Posted on 2008-06-10
8
Medium Priority
?
1,268 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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 2000 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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

721 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