Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Install db from backup

Status
Not open for further replies.

hamking01

Programmer
May 30, 2004
238
US
I received a backup of a db with .bak extenstion. I'm trying to restore it on my local computer. Could anyone tell me the steps of setting this up.

I've tried from query analyzer's master run the following command:

restore database bt
from disk = 'c:\BolTrab_28.10.2005.bak'

But this returns:
Cannot open backup device 'c:\BolTrab_28.10.2005.bak'. Device error or device off-line.
 
Do you have the SQL Server installed on your local workstation? You have to restore the database to the server that you are connecting to.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Also, where is that backup file located at? Did you copy it to your local C drive?

-SQLBill

Posting advice: FAQ481-4875
 
Yes I have sql server installed on my local computer. I was emailed the bak file and moved the file to my C drive. I then ran the above command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top