java.sql.SQLException: Cannot open database “HA” requested by the login. The login failed.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via wordpress.com by Unknown author, 1 year ago
Cannot open databaseHArequested by the login. The login failed.
via wordpress.com by Unknown author, 2 years ago
Cannot open databaseHArequested by the login. The login failed.
via jtds by adam_hughes
, 1 year ago
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
via jtds by sathishv
, 1 year ago
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
via jtds by *anonymous
, 1 year ago
Cannot open database requested in login 'testdb'. Login fails.
via Oracle Community by 800455, 1 year ago
Cannot open database requested in login 'FA_Shropshire'. Login fails.
java.sql.SQLException: Cannot open database “HA” requested by the login. The login failed.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2820)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2258)
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:610)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:345)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:243)
at com.gitz.Test.main(Test.java:32)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
41 times, 6 months ago
29 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.