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
Solved

Can't attach  AdventureWorks2008 database

Posted on 2011-09-14
7
442 Views
Last Modified: 2012-06-27
I've been trying to attach the AdventureWorks2008 database to no avail.  I've verified that filestream is enabled as well as fully text search.  I am able to attach AdventureWorksDW2008 with no problem but when I try to attach the AdventureWorks2008 database, It looks like it trying to attach - I see the execute task bar  cycling through.  So I'm not sure what is the problem.  I am running MS SQL Server 2008 - Developer version
0
Comment
Question by:chtullu135
  • 3
  • 3
7 Comments
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 36540337
Are you sure you didn't accidentally grab the AdventureWorks2008R2?
Try http://sqlserversamples.codeplex.com/releases/view/30803
0
 

Author Comment

by:chtullu135
ID: 36540347
Hello mwvisa1
Actually, that was the first thing I checked.  I'm going to check out the link you sent me.
0
 
LVL 8

Expert Comment

by:venk_r
ID: 36540350
Run sp_who2 active and send me the snapshot when you try to attach the db.
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.

 

Author Comment

by:chtullu135
ID: 36540362
When I try to attach the db, the computer gets locked up
0
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 36540496
Did you download the files again from the link I sent? It might have been a corruption on previous download. Worth a try.

Also, see what happens if you do not use the GUI: i.e., use sp_attach_db
http://msdn.microsoft.com/en-us/library/ms179877(v=SQL.100).aspx
0
 

Author Closing Comment

by:chtullu135
ID: 36540803
I create the database via SQLCMD mode and  then used sp_attach_db to attach it.  Everything looks fine.  Thanks
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 36540856
Wonderful. I am very glad to hear that and to have helped. For completeness, here is a better reference if you ever need this in the future: http://msdn.microsoft.com/en-us/library/ms176061(v=SQL.100).aspx
It appears I need to break old habits and start using CREATE DATABASE ... FOR ATTACH instead as sp_attach_db will be deprecated in future versions of SQL. :)

Anyway, best regards and happy coding,

Kevin
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

790 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