SQL Server Data Tools - Recovery Mode
Asked Answered
S

1

11

I am using SQL Server Data Tools (SSDT) to manage my database schema. Every time I choose to publish changes to my schema, the script contains the following bit:

IF EXISTS (SELECT 1
           FROM   [master].[dbo].[sysdatabases]
           WHERE  [name] = N'$(DatabaseName)')
    BEGIN
        ALTER DATABASE [$(DatabaseName)]
            SET RECOVERY FULL 
            WITH ROLLBACK IMMEDIATE;

    END

The problem is, I don't want it to change my recover mode to FULL. I would like it to be SIMPLE.

How can I modify my SSDT project to indicate that I want simple recovery mode, so that it will stop trying to change it to full every time I publish it?

Stefanysteffane answered 10/12, 2012 at 17:42 Comment(0)
S
15

Actually, found this option (and a lot more) within the "database settings" button in the project settings. A bit hidden IMO :)

SSDT Database Settings

Stefanysteffane answered 10/12, 2012 at 17:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.