Citrix: Common Severity Login Failed State Codes with Descriptions

Summary

This document contains information about the common SQL Server State codes related to login failure and a description of these error codes.

Background

You might notice that SQL log messages display logon failure errors, attempting to interoperate Citrix products with SQL Server. Each failed login attempt is associated with Severity and State codes as shown in the following sample screen shot:

SQL Server State Codes

The SQL server returns the correct State code to identify the source of the issue. In the preceding example, the login failed due to invalid permission on the target database.

Refer the following table to identify the common error State codes and a description of the error:

State

Error Description

1

Account is locked out

2

User ID is not valid

3-4

Undocumented

5

User ID is not valid

6

Attempt to use a Windows login name with SQL Authentication

7

The login being used is disabled and password mismatch

8

Incorrect password

9

Invalid password

10

Related to a SQL login being bound to Windows domain password policy enforcement.

11-12

Login valid but server access failed

13

SQL Server service paused

14

Account being used to access the server do not have permission to log in to the server

16

Login valid, but is missing the required permission to use the target database.

18

Password expired- Change password required

23

Simultaneous action of shutting down SQL SERVER and any incoming logins to SQL server

27

Initial database could not be found

38

Login valid but database unavailable (or login not permissioned)

40

New login is created with the default db option being set to a database which is OFFLINE or unavailable

58

An attempt to login using SQL authentication failed. Server is configured for Windows authentication only

This document applies to:

Source: Common Severity Login Failed State Codes with Descriptions

Leave a Reply

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