Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restore with different name
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Copies de sauvegarde
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01567538
Message ID:
01567545
Vues:
25
>>>>Hi,
>>>>
>>>>I am in the SSMS 2005 and I want to restore a backup but with a different name that the existing database (to compare the changes, if any). When I right mouse click on the Database I see choices Restore Database and Restore Files and Groups. Do I need first to create an empty database with a different name and then restore into it? (I have done it once before but forgot the steps).
>>>
>>>You can create an empty database and then restore with override.
>>
>>What is strange (to me) is when I click on the Options button,the Restore the Database Files As table shows the "good" database that I do not want to overwrite. Yet in the General tab the To Database shows the name of the different name. I am sure it is something simply I am missing.
>
>Here is what I generated using Script button
>
>
>USE [master]
>RESTORE DATABASE [TestRestore] FROM  DISK = N'C:\SQL DB Backups\All DBs\AdventureWorks2008R2.bak' WITH  FILE = 1,  NOUNLOAD,  REPLACE,  STATS = 5
>
>GO
>
>It failed for me with Access Denied error, so I didn't re-try again. I suggest to close SSMS and use a similar command after you re-open SSMS.

Thank you. I will try first in my SSMS to be sure I understand what is going on. Before I "break" customer database.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform