Operating System Error 0 to Operating System Error 20 for SQL Server

SQLServerF1

 

The operating system error 0(The operation completed successfully)
The operation completed successfully
ERROR_SUCCESS

The operating system error 1(Incorrect function)
Incorrect function.
ERROR_INVALID_FUNCTION

The operating system error 2(The system cannot find the file specified)
The system cannot find the file specified.
ERROR_FILE_NOT_FOUND

The operating system error 3(The system cannot find the path specified)
The system cannot find the path specified.
ERROR_PATH_NOT_FOUND

The operating system error 4(The system cannot open the file)
The system cannot open the file.
ERROR_TOO_MANY_OPEN_FILES

The operating system error 5(Access is denied.)
Access is denied.
ERROR_ACCESS_DENIED

The operating system error 6(The handle is invalid)
The handle is invalid.
ERROR_INVALID_HANDLE

The operating system error 7(The storage control blocks were destroyed)
The storage control blocks were destroyed.
ERROR_ARENA_TRASHED

The operating system error 8(Not enough storage is available to process this command)
Not enough storage is available to process this command.
ERROR_NOT_ENOUGH_MEMORY

The operating system error 9(The storage control block address is invalid)
The storage control block address is invalid.
ERROR_INVALID_BLOCK

The operating system error 10(The environment is incorrect)
The environment is incorrect.
ERROR_BAD_ENVIRONMENT

The operating system error 11(An attempt was made to load a program with an incorrect format)
An attempt was made to load a program with an incorrect format.
ERROR_BAD_FORMAT

The operating system error 12(The access code is invalid)
The access code is invalid.
ERROR_INVALID_ACCESS

The operating system error 13(The data is invalid)
The data is invalid.
ERROR_INVALID_DATA

The operating system error 14(Not enough storage is available to complete this operation)
Not enough storage is available to complete this operation.
ERROR_OUTOFMEMORY

The operating system error 15(The system cannot find the drive specified)
The system cannot find the drive specified.
ERROR_INVALID_DRIVE

The operating system error 16(The directory cannot be removed)
The directory cannot be removed.
ERROR_CURRENT_DIRECTORY

The operating system error 17(The system cannot move the file to a different disk drive)
The system cannot move the file to a different disk drive.
ERROR_NOT_SAME_DEVICE

The operating system error 18(There are no more files)
There are no more files.
ERROR_NO_MORE_FILES

The operating system error 19(The media is write protected)
The media is write protected.
ERROR_WRITE_PROTECT

The operating system error 20(The system cannot find the device specified)
The system cannot find the device specified.
ERROR_BAD_UNIT

This is applicable for below versions of Operating Systems

Windows Server 2003
Windows Server 2008 R2
Windows Server 2012

Hope this was helpful.

Thanks,
SQLServerF1 Team
In-Depth Blogs on SQL Server, Information about SQL Server Conferences and Events, SQL Server Frequently asked questions, SQL Server Trainings.

 

Leave a Reply

Your email address will not be published. Required fields are marked *