You are currently viewing the BOOK: Beginning Microsoft SQL Server 2012 Programming 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
I downloaded the sample databases for the Programming SQL Server 2012 Reporting Services book, but the zip files extract to AdventureWorks_WroxSSRS.bak. What is this file type? Does it need to be renamed? Should it not be a *.msi file like the readme says? Or at least a *.mdf file? I'm lost.
In SQL Server Management Studio, in the Object Explorer pane, right click on the Databases folder of your SQL Server instance. Select Restore Database...
Choose Device and browse to your *.bak file.
The database will be restored to your SQL Server Data directory.
I downloaded AdventureWorks for this book but it is a mdf file that it does not have log file and I couldn't attach it in SQL management tools.
please help me. :(
Last edited by milad0101; November 6th, 2012 at 05:19 AM..
I got it myself.
here is the solution :
EXEC sp_attach_single_file_db @dbname='AdventureWorks',
@physname=N'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\AdventureWork s.mdf'