Solved

Can't login to AdventureWorks DB within Analysis Services tutorial

Posted on 2008-06-10
8
1,250 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
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: 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS - Date Report Options 2 29
CDC and AOG on MS SQL 2012 13 25
Need return values from a stored procedure 8 21
SQL Recursion schedule 13 19
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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.
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.

821 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