Operating System Error 170 (Requested Resource is in use)

Operating System Error 170 (Requested Resource is in use)

Operating System Error 170 (Requested Resource is in use)

Operating System Error 170(Requested Resource is in use)

It might happen at some point, under certain circumstances, to get the above error message on your SQL Server environment.

Explaining the Error Message

The above error means that some other process put a lock on a database file (or other related SQL Server files as well, i.e. log files, etc.) and SQL Server cannot access it in order to write in it. This is an unpleasant situation because many times, at a first look, you don’t identify something wrong but the problem persists!

So, what you can do? You have a situation where SQL Server reports as a critical error that it cannot write on one or more of its hosted databases.

You hope that you can resolve this issue fast and without any downtime.

It did happen to me in the past as well, so I would like to share some tips with you, which you might find useful for resolving this issue.

How to Resolve the Requested Resource is in Use Error

Here’s what you can try for resolving the error:

– Check via Windows Resource Monitor – overview – disk activity to see if any database/log files are used by any other activity than SQL Server
– Use Sysinternals “Handle” tool to see if there are any other handles on the file rather than SQL Server itself
– Check if antivirus is using the specific file thus keeping it locked

Example of using Handle.exe:

Investigating the error message: Operating System Error 170(Requested Resource is in use) using SysInternals Tools

Hope this helps!

Here are some other SQL Server troubleshooting articles which you can check out for finding solutions to related technical issues you might encounter:


Reference: SQLNetHub.com (https://www.sqlnethub.com)

Rate this article: 1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)


Subscribe to our newsletter and never miss a thing!


© 2017 SQLNetHub.com

Artemakis Artemiou
Artemakis Artemiou is a Senior SQL Server Architect, Author, and a 9 Times Microsoft Data Platform MVP (2009-2018). He has over 15 years of experience in the IT industry in various roles. Artemakis is the founder of SQLNetHub and TechHowTos.com. Artemakis is the creator of the well-known software tools Snippets Generator and DBA Security Advisor. Also, he is the author of many eBooks on SQL Server. Artemakis currently serves as the President of the Cyprus .NET User Group (CDNUG) and the International .NET Association Country Leader for Cyprus (INETA). Artemakis's official website can be found at aartemiou.com.