Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding Backup Recovery Model
Message
From
05/01/2014 15:10:19
 
General information
Forum:
Microsoft SQL Server
Category:
Backups
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01591370
Message ID:
01591371
Views:
45
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform