Avatar of vbnetcoder
vbnetcoder
 asked on

.bak file to create database

I have a .bak file for a database i want to use.  How would i use it to create the database?

Specifically, i downloaded:

AdventureWorks2012-Full Database Backup.zip

from here:

http://msftdbprodsamples.codeplex.com/releases/view/55330
Microsoft SQL Server 2008Microsoft SQL Server

Avatar of undefined
Last Comment
vbnetcoder

8/22/2022 - Mon
plusone3055

you want to restore a database with a .bak file

Here is the step by step process with pictures on how to accomplish this :)

http://social.technet.microsoft.com/wiki/contents/articles/7654.how-to-restore-a-database-backup-using-bak-file-in-ms-sql-server-2012.aspx
vbnetcoder

ASKER
It says, "To create a new database, enter its name in the list box"


but its not letting me doe so
ASKER CERTIFIED SOLUTION
plusone3055

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
vbnetcoder

ASKER
I tried to attach the .mdf file and i am getting an operating system error 5 - access is denied.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
plusone3055

ah whatever group you are on in windows does not have full read/write control

here's how you fix that :)
Screenshot
vbnetcoder

ASKER
Perfect! Thanks!
vbnetcoder

ASKER
Thank you for the very easy to follow instructions!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.