Exception name |
Causes |
Solution |
com.microsoft.sqlserver.jdbc.SQLServerException |
user <username> Login failed. |
Either User name or Password is invalid. |
Please confirm [User name] or [Password] in Global Resource. And confirm that the format of the user name is <user name>@<server name>. |
The TCP/IP connection to the host <server name>.database.windows.net, port 1433 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.". |
Either Database name or User name is invalid. |
Please confirm [Database name] or [User name] in Global Resource. And confirm that the format of the user name is <user name>@<server name>. |
Connection reset |
Either User name is invalid. |
Please confirm that the format of the user name is <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 (user name@server name). In addition, if both formats are used, the server names must match. |
Either User name is invalid. |
Please confirm that the format of the user name is <user name>@<server name>. And confirm that the server name is valid. |
The TCP/IP connection to the host <host name>, port 1433 has failed. Error: "null. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.". |
Cannot connect to the database. |
Check the network connectivity and ensure the [Hostname] specified is valid. |
Cannot open database "<database name>" requested by the login. The login failed. |
"<database name>" does not exist. |
Please confirm [Database name] in Global Resource. |
Invalid object name '<table name>' |
"<table name>" does not exist. |
Please confirm [Table name]. |
Incorrect syntax near '<table name>' |
The table name may not follow the rules for standard identifiers of Transact-SQL. |
In that case, enclose [Table name] with quotation marks. |