Sql-server – Deleting data directly from backup file

backupsql serversql server 2014

Is it possible to update the data directly inside the backup file (*.bak) in SQL Server 2014?

The scenario is that I want to automate the process of providing the "smaller" database to some endusers/developers (just deleting some rows/updating values in column) to be restored by them furthermore. Can I achieve this goal by running any command to directly update the *.bak … or I have to prepare additional (copy of) database, then restore it from this *.bak, then provide my "cleaning" (running update command) and then prepare different *.bak file again?

Best Answer

Restore it to a dummy DB, purge the data that you don't want them to have, make another full backup, drop the dummy DB, and then provide them the copy of the BAK file at that point.