Exception name |
Cause |
Solution |
com.microsoft.sqlserver.jdbc.SQLServerException |
Login failed for user '<user name>'. |
The user name or the password is incorrect. |
Check [User name] or [Password] of the global resource. |
Cannot open database "<database name>" requested by the login. The login failed. |
The database is invalid. |
Check [Database name] of the global resource . |
TCP/IP connection to the host <host name>, port <port number> has failed. Error: “Connection timed out: no further information. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.” |
Unable to connect to the database. |
Check [Host name] of the global resource, or the network. |
Invalid object name '<table name>'. |
The table does not exist. |
Specify an existing table in [Table name]. |
Incorrect syntax near ‘<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. |