Error when restore sql database from .bak file - database

When I restore SQL database by using Microsoft SQL Server Management Studio, it fails and give me this message:
TITLE: Microsoft SQL Server Management Studio
Restore failed for Server 'app1'.
(Microsoft.SqlServer.Smo)
For help, click:
http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476
------------------------------ ADDITIONAL INFORMATION:
An exception occurred while executing
a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)
The file or filegroup
"SilosFollow_log" cannot be selected
for this operation. RESTORE DATABASE
is terminating abnormally. (Microsoft
SQL Server, Error: 3219)
For help, click:
http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.1399&EvtSrc=MSSQLServer&EvtID=3219&LinkId=20476
------------------------------ BUTTONS:
OK
NB Database owner is not the backup user name.

When you configure the restore, make sure you aren't using data/log files that are in use by a database that is currently running (probably the database you're restoring on top of).
It makes the data directory a mess, but I give my data/log files a Rev. number when I restore databases so I don't run into that issue.

Are you sure SilosFollow_log is a database backup and not a transaction log backup?
In order to restore transaction log backups you must first have restored a full database backup and any differential backups. Then you can restore the transaction log backups in turn.

Related

Restore DataBase error - RESTORE HEADERONLY terminated abnormally

i'm getting this error when i'm trying to restore a database with a .bak extension file.
TITLE: Microsoft SQL Server Management Studio
------------------------------
An exception occurred while executing a batch or Transact-SQL statement. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
ADDITIONAL INFORMATION :
The media family on media '****.bak' is incorrect. SQL Server cannot process it.
RESTORE HEADERONLY terminated abnormally. (Microsoft SQL Server, Error: 3241)
Any help and thanks.

Can I rollback data overwritten by SQL Server after restore?

I accidentally restored the database before checking. Can I restore my database as before the restore?
There is no way to rollback data that has been overwritten in SQL Server unless it has backup data to restore. CMIIW.

How to restore SQL Server 2014 database backup to a SQL Server 2016?

I get backup of my 2014 version database and try to restore this in another server into database with same name and login. This SQL Server version is 2016.
When restoring the backup file, I get this error:
TITLE: Microsoft SQL Server Management Studio
Restore of database 'TravelEnterDB' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: BACKUP LOG cannot be performed because there is no current database backup. (Microsoft.SqlServer.SmoExtended)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=13.0.16106.4+((SSMS_Rel_16_5).170125-2137)&LinkId=20476
I first created this database in SQL Server 2016 and then tried to restore backup file.
I can restore this backup file in SQL Server 2014 currently.This file has no problem!
What is problem?
as noted by hmahdavi this works.
"check " with replace " and uncheck " Tail log backup " restored successfully"

SQL Server database backup file cannot restore

In SQL Server 2008, I have a database which exceeds 10GB in size. I cleaned up the database and took a backup from it. Backup file size is 160MB.
Once I try to restore this backup file to SQL Server 2008 R2, an error popups.
I have already done this process earlier with same server-different database.
But that database size was smaller.
Please help me to restore database.

Can’t restore SQL Server 2000 backup to SQL Server 2008

I have a backup file taken from a SQL Server 2000 database and I'm trying to restore it to a 2008 database. However, I'm getting this error:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) The media family on device 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\customers.bak' is incorrectly formed. SQL Server cannot process this media family. RESTORE HEADERONLY is terminating abnormally. (Microsoft SQL Server, Error: 3241)
I am the one who originally took the backup (years ago). It was a hosted SQL Server. If I remember correctly, I got the backup using some sort of online "control panel"
SQL 2000 SP4 database can be upgraded on-the-fly to SQL 2008 (including restore-upgrade). See Version and Edition Upgrades. If you get that message most likely the media is corrupted.
In SQL Server 2008, follow these steps
Create New database with the same name as in SQL Server 2000
After writing database name, go to Options tab
In Compatibility Level dropdown select 'SQL Server 2000 (80)
After creating database, go to Task and select restore
After selecting restore resource go to options tab and select 'Overwrite the existing database (With Replace)
Your database will be restored

Resources