Assume that you dry to drop (detach) a database from an instance of Microsoft SQL Server. If the database storage had been disconnected and then reconnected, the database is not dropped. Additionally, the client system displays an error message that resembles the following:
Msg 823, Level 24, State 2, Line 5
The operating system returned error 21(The device is not ready.) to SQL Server during a read at offset 0x000000000c2000 in file 'F:\file_name.mdf'. Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
This fix is included in the following updates:
Cumulative Update 1 for SQL Server 2016 Service Pack 2
Cumulative Update 9 for SQL Server 2016 Service Pack 1
Cumulative Update 12 for SQL Server 2014 Service Pack 2
About SQL Server builds
Each new build for SQL Server contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for your version of SQL Server:
The latest build for SQL Server 2016
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Learn about the standard terminology Microsoft uses to describe software updates.