sql server - How to restore a differential backup made under a different database name? -


i did full backup of database. restored database on server, different name. did differential backup.

now want restore database using management studio. both backups checked default, accept default options. message appears:

you cannot select backup sets different databases

this same database, name different. if had made full backup, right after restoring database, have no problem. didn't. how restore differential backup?

you can restore differential backup using transact-sql. first analyze contents of backups:

restore headeronly disk = 'l:\temp\1\pusta.bak'

then restore backups in 2 steps:

restore database pusta disk = 'l:\temp\1\spplus_pusta.bak'  file = 1, norecovery go restore database pusta disk = 'l:\temp\1\spplus_pusta.bak'  file = 2, recovery go 

i found answer on russian forum sql.ru, thank you, pr0ger.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -