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. Also, check whether the user name is in the format of "<user name>@<server name>". |
TCP/IP connection to host <server name>.database.windows.net, port 1433 failed. Error: “connect timed out. 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. |
The database name or the user name is invalid. |
Check [Database name] or [User name] of the global resource. Also, check whether the user name is in the format of "<user name>@<server name>". |
Connection reset |
The user name is invalid. |
Check whether [User name] of the global resource is in the format of “<user name>@<server name>”. |
Server name cannot be determined. It must appear as the first segment of the server's dns name (servername.database.windows.net). Some libraries do not send the server name, in which case the server name must be included as part of the user name (username@servername). In addition, if both formats are used, the server names must match. |
The user name is invalid. |
Check whether [User name] of the global resource is in the format of “<user name>@<server name>”. Also, check whether the correct value is set in <server name>. |
TCP/IP connection to the host <host name>, port 1433 failed. Error: "null. 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. |
Cannot open database "<database name>" requested by the login. The login failed. |
The database is invalid. |
Check [Database name] of the global resource. |
Invalid object name '<table name>' |
The table name is invalid. |
Check [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. |