Enable or disable backup checksums during backup or restore (SQL Server) - SQL Server (2024)

  • Article

Applies to: Enable or disable backup checksums during backup or restore (SQL Server) - SQL Server (1) SQL Server

This article describes how to enable or disable backup checksums when you're backing up or restoring a database in SQL Server by using SQL Server Management Studio or Transact-SQL.

Permissions

BACKUP

BACKUP DATABASE and BACKUP LOG permissions default to members of the sysadmin fixed server role and the db_owner and db_backupoperator fixed database roles.

Ownership and permission problems on the backup device's physical file can interfere with a backup operation. SQL Server must be able to read and write to the device; the account under which the SQL Server service runs must have write permissions. However, sp_addumpdevice, which adds an entry for a backup device in the system tables, doesn't check file access permissions. Such problems on the backup device's physical file might not appear until the physical resource is accessed when the backup or restore is attempted.

RESTORE

If the database being restored doesn't exist, the user must have CREATE DATABASE permissions to be able to execute RESTORE. If the database exists, RESTORE permissions default to members of the sysadmin and dbcreator fixed server roles and the owner (dbo) of the database (for the FROM DATABASE_SNAPSHOT option, the database always exists).

RESTORE permissions are given to roles in which membership information is always readily available to the server. Because fixed database role membership can be checked only when the database is accessible and undamaged, which isn't always the case when RESTORE is executed, members of the db_owner fixed database role don't have RESTORE permissions.

Use SQL Server Management Studio

Enable or disable checksums during a backup operation

  1. Follow the steps to create a database backup.

  2. On the Options page, in the Reliability section, select Perform checksum before writing to media.

Use Transact-SQL

Enable or disable backup checksum for a backup operation

  1. Connect to the Database Engine.

  2. From the Standard bar, select New Query.

  3. To enable backup checksums in a BACKUP (Transact-SQL) statement, specify the WITH CHECKSUM option. To disable backup checksums, specify the WITH NO_CHECKSUM option. This is the default behavior, except for a compressed backup. The following example specifies that checksums be performed.

BACKUP DATABASE AdventureWorks2022TO DISK = 'Z:\SQLServerBackups\AdvWorksData.bak'WITH CHECKSUM;GO

Enable or disable backup checksum for a restore operation

  1. Connect to the Database Engine.

  2. From the Standard bar, select New Query.

  3. To enable backup checksums in a RESTORE Statements (Transact-SQL) statement, specify the WITH CHECKSUM option. This is the default behavior for a compressed backup. To disable backup checksums, specify the WITH NO_CHECKSUM option. This is the default behavior, except for a compressed backup. The following example specifies that backup checksums be performed.

RESTORE DATABASE AdventureWorks2022FROM DISK = 'Z:\SQLServerBackups\AdvWorksData.bak'WITH CHECKSUM;GO

Warning

If you explicitly request CHECKSUM for a restore operation and if the backup contains backup checksums, backup checksums and page checksums are both verified, as in the default case. However, if the backup set lacks backup checksums, the restore operation fails with a message indicating that checksums aren't present.

Related content

Enable or disable backup checksums during backup or restore (SQL Server) - SQL Server (2024)
Top Articles
Experts Say Conscientious Personalities May Live a Longer Life
Stagflation and Real Estate
Stretchmark Camouflage Highland Park
Unblocked Games Premium Worlds Hardest Game
BULLETIN OF ANIMAL HEALTH AND PRODUCTION IN AFRICA
Craigslist Vermillion South Dakota
Rls Elizabeth Nj
Camstreams Download
UEQ - User Experience Questionnaire: UX Testing schnell und einfach
Current Time In Maryland
Nj State Police Private Detective Unit
Tamilrockers Movies 2023 Download
Equipamentos Hospitalares Diversos (Lote 98)
Accuweather Mold Count
Katie Sigmond Hot Pics
Teen Vogue Video Series
Dtlr Duke St
Boxer Puppies For Sale In Amish Country Ohio
Kirk Franklin Mother Debra Jones Age
4 Methods to Fix “Vortex Mods Cannot Be Deployed” Issue - MiniTool Partition Wizard
Mynahealthcare Login
Medline Industries, LP hiring Warehouse Operator - Salt Lake City in Salt Lake City, UT | LinkedIn
Select The Best Reagents For The Reaction Below.
Yu-Gi-Oh Card Database
Rlcraft Toolbelt
Tmj4 Weather Milwaukee
Vistatech Quadcopter Drone With Camera Reviews
What Happened To Father Anthony Mary Ewtn
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
My.lifeway.come/Redeem
Dmitri Wartranslated
Aliciabibs
Publictributes
Mytime Maple Grove Hospital
Casamba Mobile Login
Updates on removal of DePaul encampment | Press Releases | News | Newsroom
Doe Infohub
3 bis 4 Saison-Schlafsack - hier online kaufen bei Outwell
Shell Gas Stations Prices
Cleveland Save 25% - Lighthouse Immersive Studios | Buy Tickets
How to Connect Jabra Earbuds to an iPhone | Decortweaks
Wzzm Weather Forecast
Wood River, IL Homes for Sale & Real Estate
The Quiet Girl Showtimes Near Landmark Plaza Frontenac
Food and Water Safety During Power Outages and Floods
San Diego Padres Box Scores
Bama Rush Is Back! Here Are the 15 Most Outrageous Sorority Houses on the Row
53 Atms Near Me
Elvis Costello announces King Of America & Other Realms
Where Is Darla-Jean Stanton Now
Invitation Quinceanera Espanol
ats: MODIFIED PETERBILT 389 [1.31.X] v update auf 1.48 Trucks Mod für American Truck Simulator
Latest Posts
Article information

Author: Maia Crooks Jr

Last Updated:

Views: 5997

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Maia Crooks Jr

Birthday: 1997-09-21

Address: 93119 Joseph Street, Peggyfurt, NC 11582

Phone: +2983088926881

Job: Principal Design Liaison

Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.