Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 .bak file restore help

Author  Topic 

fulgore
Starting Member

1 Post

Posted - 2011-01-27 : 16:21:04
I have browsed the forums and found some good information about restoring .bak files. I still need some help. Here is my issue.
I have moved a .bak file to my ftp server from my work server (sql 2005). Downloaded the file onto my laptop (sql 2005 also). File location is C:\bombackup.bak I ran "RESTORE FILELISTONLY FROM DISK = N'C:\bombackup.bak'" and the result was.

I then ran the following statement

restore DATABASE [BOM] FROM DISK = N'C:\bombackup.bak' WITH FILE = 1, MOVE N'PartNumbering' TO N'C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Data\BOM.mdf', MOVE N'PartNumbering_log' TO N'C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Data\BOM_1.ldf'
GO


I received the following error.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-27 : 16:29:17
Your backup is corrupt.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -