1280 - Error when backing up many SQL databases on a single machine

Modified on Mon, 21 Jul at 12:51 PM

Symptom

If you have a very large number of SQL databases (50+) on a single machine, you may encounter a variety of VSS and system errors. Some of these include:

  • "Cannot create worker thread."
  • "AddLegacyDriverFiles: Unable to back up image of binary Microsoft Link-Layer Discovery Protocol."
  • "BACKUP DATABASE is terminating abnormally."

 

Solution

If the machine is running a 64-bit Windows OS, you can resolve this by increasing the max worker threads to twice the number of databases (e.g. if you have 200 databases, set the max to 400 threads). Then schedule a reboot of the server and try the backup again.

To do this using SQL Server Management Studio:

  1. In Object Explorer, right-click a server and select Properties.
  2. Click the Processors node.
  3. In the Max worker threads field, type or select the appropriate number as explained above.

Note: This may significantly increase CPU and RAM usage at the time of the snapshot.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article