Solved

Can't login to AdventureWorks DB within Analysis Services tutorial

Posted on 2008-06-10
8
1,239 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
  • 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
 
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now