Sql Server Error : Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized.
- Posted by Sqltimes
- On June 20, 2015
- 0 Comments
Quick one today:
Recently, in our lab, we ran into this interesting error:
1
|
Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. |
Turns out, we were attempting to multiple operations there were mutually exclusive. For example,
- Adding a new data file while backup operation is running
- Removing data file while running backup operation
- Shrink file during backup operation
- etc.
Once the backup is completed, we were able to perform these operations. When backup runs, it reads every extent and writes into a backup file. So, during this, any attempts to change the underlying file structures (where the extents live) could not be allowed (obviously).
There may be several such operations that are mutually exclusive; So it is good to learn and list them so we do not do this again. More will be added as they come up.
Hope this helps,
_Sqltimes
_Sqltimes
0 Comments