Bill Darnold
2006-11-13 19:17:00 UTC
I am trying to remove a file from a filegroup. The shrinkfile runs for a
few hours, then gets a deadlock. Here is the error:
Msg 1205, Level 13, State 57, Line 1
Transaction (Process ID 55) was deadlocked on lock | communication buffer
resources with another process and has been chosen as the deadlock victim.
Rerun the transaction.
I have a few questions about this issue:
1. What is causing this deadlock and how can I avoid it?
2. Does shrinkfile roll back all the data moved out of the file during this
transaction? I get several million IO operations before the failure. Have
I made progress toward emptying the file?
3. Once the shrinkfile fails, does SQL Server still add data to this file,
or is it marked as unavailable for new data?
few hours, then gets a deadlock. Here is the error:
Msg 1205, Level 13, State 57, Line 1
Transaction (Process ID 55) was deadlocked on lock | communication buffer
resources with another process and has been chosen as the deadlock victim.
Rerun the transaction.
I have a few questions about this issue:
1. What is causing this deadlock and how can I avoid it?
2. Does shrinkfile roll back all the data moved out of the file during this
transaction? I get several million IO operations before the failure. Have
I made progress toward emptying the file?
3. Once the shrinkfile fails, does SQL Server still add data to this file,
or is it marked as unavailable for new data?