com.microsoft.sqlserver.jdbc.SQLServerException: Line 1: Incorrect syntax near ' LOGIN'.         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError (SQLServerException.java:196)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServ erStatement.java:1454)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQ LServerStatement.java:786)         at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute (SQLServerStatement.java:685)         at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4026)         at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLSe rverConnection.java:1416)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLSer verStatement.java:185)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLS erverStatement.java:160)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeUpdate(SQLServ erStatement.java:642)         at org.opengts.dbtools.DBConnection.\_executeUpdate(DBConnection.java:716 )         at org.opengts.dbtools.DBConnection.executeUpdate(DBConnection.java:674)

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 opengts by kernal69
, 1 year ago
Line 1: Incorrect syntax near ' LOGIN'.         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError (SQLServerException.java:196)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServ
com.microsoft.sqlserver.jdbc.SQLServerException: Line 1: Incorrect syntax near ' LOGIN'.         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError (SQLServerException.java:196)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServ erStatement.java:1454)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQ LServerStatement.java:786)         at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute (SQLServerStatement.java:685)         at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4026)         at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLSe rverConnection.java:1416)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLSer verStatement.java:185)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLS erverStatement.java:160)         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeUpdate(SQLServ erStatement.java:642)         at org.opengts.dbtools.DBConnection.\_executeUpdate(DBConnection.java:716 )         at org.opengts.dbtools.DBConnection.executeUpdate(DBConnection.java:674)
at org.opengts.dbtools.DBConnection.executeUpdate(DBConnection.java:655)
at org.opengts.dbtools.DBProvider.grantDBUser(DBProvider.java:1766)

Users with the same issue

You are the first who have seen this exception.

Write tip

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