Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding Backup Recovery Model
Message
De
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:
01591371
Vues:
42
>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
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform