Say I have a database Live
on some instance. I have created a backup of it and now I need to restore it into a new database named Dev
.
In SSMS
I am choosing a device Live.bak
, then in destination I am changing the name to Dev
and in Files
tab I see that database and log files are also renamed Dev.mdf
and Dev_log.ldf
. When I proceed the Live
database changes its status to Restoring
.
Now I tried to uncheck tail log option and it restored normally. Is it safe way to restore the database? I mean I don't want any changes to Live
. Why it tries to restore Live
database. I am confused.
Live
database should not change toRestoring
, because then you are restoring theLive
database.RESTORE DATABASE Dev...
script instead of pointing and clicking in the GUI.Live
database changes status toRestoring
, then you've done something wrong, you probably don't have the destination set properly. In this scenario, you should instead see a new database namedDev
appear with statusRestoring
.