Exception name |
Cause |
Solution |
com.microsoft.sqlserver.jdbc.SQLServerException |
User '<user name>' cannot login. |
The user name or the password is incorrect. |
Check [User name] or [Password] of the global resource. |
Cannot open the requested database "<database name>" with this login. Failed to login. |
The database is invalid. |
Check [Database name] of the global resource. |
TCP/IP connection to the host <host name> and the port <port number> failed. Connection refused: connect. Open the connection properties and check that a SQL Server instance is running in the host, that TCP/IP connection to the port is permitted, and that the TCP connection to the port is not blocked by firewall. |
Unable to connect to the database. |
Check [Host name] of the global resource, or the network. |
Object name '<table name>' is invalid. |
The table does not exist. |
Specify an existing table in [Table name]. |
There is a syntax error around ‘<table name>’. |
The table name may not be in accordance with the rules of Transact-SQL standard identifier. |
Enclose the table specified in [Table name] with quotation marks. |
The driver is not configured to perform Windows authentication. |
Library for Windows authentication may not be placed. |
Check the directory where sqljdbc_auth.dll was placed. |