Restoring .bak files in sql server
-
2012年4月11日 上午 07:31
I got this error while restoring a .bak file. any one help to resolve this error
所有回覆
-
2012年4月11日 上午 08:45
looks not good.
are you sure that dynamics.bak is a SQL Server backup ?
are you using the same or higher version than the backup file is coming from?
use the following statement on both servers to get version number
select @@version
- 已標示為解答 Somasekar N 2012年4月11日 下午 12:28
- 已取消標示為解答 Somasekar N 2012年5月11日 上午 04:49
- 已標示為解答 Somasekar N 2012年5月11日 上午 04:50
-
2012年4月11日 上午 09:17
hi,
Are you trying to restore a backup made on a newer version than the one you are restoring? Database backups are not backward compatible, eg: you cannot restore a backup created on SQL 2008 to SQL 2005
I hope it helps.
Janos
There are 10 type of people. Those who understand binary and those who do not.
My Blog -
2012年4月11日 下午 12:17
Hello,
As mentioned in another reply, remember that SQL Backups are not backward compatible.
If you are trying to restore to the same or newer sql version and you get this error, the BAK file could be corrupted
you can check it using below code
RESTORE VERIFYONLY FROM DISK = "C:\FILE.BAK"
http://msdn.microsoft.com/en-us/library/ms188902.aspx
Javier Villegas | @javier_vill | http://sql-javier-villegas.blogspot.com/
Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you -
2012年4月11日 下午 12:29Thank you daniel, that was a version problem only.

