java.sql.SQLException: Login failed for user 'sa'.

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.sql.SQLException: Login failed for user 'sa'

    Database Administrators | 5 years ago
    java.sql.SQLException: Login failed for user 'sa'.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    java.sql.SQLException: Login failed for user 'sa'

    Database Administrators | 5 years ago | Mike
    java.sql.SQLException: Login failed for user 'sa'.
  4. 0

    Java connection to a SQL Server Database: Login failed for user 'sa'

    Stack Overflow | 4 years ago | Daniel Pop
    java.sql.SQLException: Login failed for user 'sa'.

  1. abrazeneb 1 times, last 6 months ago
13 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.sql.SQLException

    Login failed for user 'sa'.

    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic()
  2. jTDS
    Driver.connect
    1. net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
    2. net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2820)
    3. net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2258)
    4. net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:603)
    5. net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:345)
    6. net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
    7. net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
    7 frames
  3. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(Unknown Source)
    2. java.sql.DriverManager.getConnection(Unknown Source)
    2 frames
  4. Unknown
    testConnection.main
    1. DB.dbConnect(testConnection.java:17)
    2. testConnection.main(testConnection.java:7)
    2 frames