Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding Backup Recovery Model
Message
 
 
À
05/01/2014 15:10:19
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Copies de sauvegarde
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01591370
Message ID:
01591374
Vues:
32
>>Hi,
>>
>>I have two questions:
>>
>>1. My SQL Server backup command syntax is as follows:
>>
>>   BACKUP DATABASE MyDatabase1 TO DISK = 'C:\Backups\MyDatabase1.BAK' WITH INIT 
>>
>>
>>Do I understand that what actually goes to the file "MyDatabase1.bak" depends on whether, before the BACKUP command is executed,
>>I issued command?:
>>
>>ALTER DATABASE MyDatabase1 SET RECOVERY FULL
>>
>>or
>>
>>ALTER DATABASE MyDatabase1 SET RECOVERY SIMPLE
>>
>>2. Since I have not issued the SET RECOVERY command before backing up my databases, how I can determine the Recover Model of the database? That is, I would like to know if I have FULL backup or SIMPLE backup.
>>
>>TIA.
>
>
>Yes, the recovery model setting determines whether the transaction log is backed up and how the DB can be restored.
>
>I usually determine it by looking at the properties of the DB with SSMS.
>
>You can do in TSQL this way.
>
>
>SELECT name AS [Database Name],
>recovery_model_desc AS [Recovery Model]
>FROM sys.databases
> GO
>
Thank you. The above command shows that some of my databases have SIMPLE recovery model and some have FULL. It must have been set when I created the databases since I have never changed or set it.
"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