December 13, 2012 at 2:10 am
Hi,
Is there any way to restrict insert or update or delete operation while taking backup..
Thanks in advance..
December 13, 2012 at 2:16 am
Set the database to read only,
Deny insert update delete to the users, then re-enable it (only works if security is managed properly and the accounts dont have elevated rights)
Set database to single user then back to multi user
But the question comes down to why do you want to do this?
December 13, 2012 at 2:45 am
Is there any other way other than this?
December 13, 2012 at 2:46 am
Detach the database and copy the mdf/ndf/ldf's some where else
December 13, 2012 at 2:59 am
Policy based management.
December 13, 2012 at 3:18 am
sankar276 (12/13/2012)
Policy based management.
Can you detail how PBM will stop insert updates and deletes happening to a DB?
December 13, 2012 at 3:54 am
rajkiran.panchagiri (12/13/2012)
Is there any other way other than this?
Not really. Setting the DB to read only or single user for the duration of the backup is the simplest. The question is why you want to prevent data changes during a backup.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 13, 2012 at 8:41 pm
GilaMonster (12/13/2012)
rajkiran.panchagiri (12/13/2012)
Is there any other way other than this?Not really. Setting the DB to read only or single user for the duration of the backup is the simplest. The question is why you want to prevent data changes during a backup.
I agree with Gail. Why would you want to restrict access during a backup?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 13, 2012 at 9:53 pm
A part of the log will also be backed up at the end of the backup process which helps SQL server to rollback or roll forward. Why should you worry about the transactions that happen during the backups ? Experts, pealse correct me if am wrong.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply