unable to restore database


hi , 

i tried restore database in sql server 2012 in windows 8. getting error , there several files worked before in restoration not working :

title: microsoft sql server management studio
------------------------------

restore of database 'classifiedspak' failed. (microsoft.sqlserver.management.relationalenginetasks)

------------------------------
additional information:

system.data.sqlclient.sqlerror: backup log cannot performed because there no current database backup. (microsoft.sqlserver.smoextended)

help, click: http://go.microsoft.com/fwlink?prodname=microsoft+sql+server&prodver=11.0.2100.60+((sql11_rtm).120210-1846+)&linkid=20476

------------------------------
buttons:

ok
------------------------------


thank , shan ali khan

you getting error because database trying restore not same backups taken. backups taken different database , trying restore different database.

you have 2 options here.

  1. use replace while using restore command. overwrite existing database , restore database state represented backup files.
  2. delete database which you trying restore , restore again using restore command. create new database state represented backup files.

please note in both these options lose existing data of database trying restore to.

refer http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/ more details error facing.

refer http://msdn.microsoft.com/en-us/library/ms186858.aspx more details replace option.

if not help, can please share more details scenario. database backed up? files? database trying restore to?


vatsalya - msft views , opinions expressed herein of author , not reflect views of microsoft.




SQL Server  >  SQL Server Tools



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........