Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1283
  • Last Modified:

Can't login to AdventureWorks DB within Analysis Services tutorial

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
paul_tipper
Asked:
paul_tipper
  • 4
  • 4
1 Solution
 
chapmandewCommented:
Are you sure you attached/installed the database?
0
 
paul_tipperAuthor Commented:
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
 
paul_tipperAuthor Commented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
chapmandewCommented:
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
 
chapmandewCommented:
Forgot..once you find where these files are, post the locations on here...I'll write the attach script for you.
0
 
paul_tipperAuthor Commented:
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
 
chapmandewCommented:
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
 
paul_tipperAuthor Commented:
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now