Reputation: 11858
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)
------------------------------ 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.
Upvotes: 1
Views: 7681
Reputation: 102458
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.
Upvotes: 1
Reputation: 245389
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.
Upvotes: 1