Wrox Programmer Forums
|
BOOK: Professional Microsoft SQL Server 2012 Integration Services
This is the forum to discuss the Wrox book Professional Microsoft SQL Server 2012 Integration Services by Brian Knight, Erik Veerman, Jessica M. Moss, Mike Davis, Chris Rock; ISBN: 978-1-1181-0112-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Microsoft SQL Server 2012 Integration Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2014, 01:39 AM
Registered User
 
Join Date: Aug 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default error when trying to attach database

Hello,

I downloaded the db files (AdventureWorks_111810112X.mdf , AdventureWorks_DW_111810112X.mdf)
from this link http://www.wrox.com/WileyCDA/Section/id-811019.html

When I tried to attach the db files with SQL Server 2012 SSMS but failed with error messages. (it shows db names as AdventureWorks2008R2, AdventureWorksDW2008R2).


****error message

TITLE: Microsoft SQL Server Management Studio
------------------------------

Attach database failed for Server . (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdN...r&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL11.DENALIRCO\MSSQL\DATA\AdventureWorks 2008R2_Data.mdf" failed with the operating system error 3(The system cannot find the path specified.). (Microsoft SQL Server, Error: 5133)

For help, click: http://go.microsoft.com/fwlink?ProdN...3&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

****


I also had a look at the SSIS solution of chapter 3 and some packages have connections to some database called AdventureWorksDWDenali.


Kindly please help with this issue.



Thank you.
 
Old March 10th, 2015, 06:44 AM
Registered User
 
Join Date: Mar 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

a) You should have downloaded two files:

AdventureWorks_111810112X.zip
AdventureWorks_DW_111810112X.zip

The 2nd of which is the Denali one you refer to. Both are needed for the boo.

b) When you attach the database two files are listed in the 2nd window, location to the mdf and the ldf. Repoint the mdf to be where ever you located it and delete the ldf pointer, SQL will create a new one for you.

Sadly it's not the job of an SSIS book to teach you about attaching or restoring databases so this can be a trip up. I've kept it brief as it's unlikely you're every going to read this.. but maybe someone will.





Similar Threads
Thread Thread Starter Forum Replies Last Post
I get an error when I try to attach the sample database. IceThatJaw BOOK: Beginning ASP.NET 4 : in C# and VB 1 December 23rd, 2011 04:15 AM
how to attach database file pramuk97 BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 0 February 28th, 2011 02:21 AM
How to attach database left in Standby mode getnojunk SQL Server 2000 0 February 25th, 2006 09:43 AM
Attach The database on oracle server Israr SQL Server 2000 0 September 8th, 2005 03:30 AM
Attach Database ! pamyral_279 VS.NET 2002/2003 2 May 17th, 2005 07:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.