java.sql.SQLException: Incorrect syntax near the keyword 'function'. at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:364) at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2708) at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2150) at net.sourceforge.jtds.jdbc.TdsCore.clearResponseQueue(TdsCore.java:687) at net.sourceforge.jtds.jdbc.TdsCore.submitSQL(TdsCore.java:849) at net.sourceforge.jtds.jdbc.TdsCore.microsoftPrepare(TdsCore.java:1062) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareSQL(ConnectionJDBC2.java:520) at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeUpdate(JtdsPreparedStatement.java:396) at com.loudeye.tools.ant.tasks.sql.SQLStatement.exec(SQLStatement.java:137) at com.loudeye.tools.ant.tasks.UpdateSchemaTask.execute(UpdateSchemaTask.java:116) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

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 jtds by jdidion
, 1 year ago
Incorrect syntax near the keyword 'function'. at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:364) at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2708) at
java.sql.SQLException: Incorrect syntax near the keyword 'function'. at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:364) at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2708) at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2150) at net.sourceforge.jtds.jdbc.TdsCore.clearResponseQueue(TdsCore.java:687) at net.sourceforge.jtds.jdbc.TdsCore.submitSQL(TdsCore.java:849) at net.sourceforge.jtds.jdbc.TdsCore.microsoftPrepare(TdsCore.java:1062) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareSQL(ConnectionJDBC2.java:520) at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeUpdate(JtdsPreparedStatement.java:396) at com.loudeye.tools.ant.tasks.sql.SQLStatement.exec(SQLStatement.java:137) at com.loudeye.tools.ant.tasks.UpdateSchemaTask.execute(UpdateSchemaTask.java:116) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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