liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Incorrect syntax near the keyword 'null'. [Failed SQL: ALTER USER null WITH DEFAULT_SCHEMA = [dbo ]]

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 JIRA by Gregory Bruce, 1 year ago
liquibase.exception.DatabaseException: Incorrect syntax near the keyword 'null'. [Failed SQL: ALTER USER null WITH DEFAULT_SCHEMA = [dbo ]]
via JIRA by Gregory Bruce, 1 year ago
liquibase.exception.DatabaseException: Incorrect syntax near the keyword 'null'. [Failed SQL: ALTER USER null WITH DEFAULT_SCHEMA = [dbo ]]
via JIRA by Gary Plante, 1 year ago
liquibase.exception.DatabaseException: Incorrect syntax near the keyword 'null'. [Failed SQL: IF USER_NAME() <> N'dbo' BEGIN DECLARE @sql [nvarchar](MAX) SELECT @sql = N'ALTER USER ' + QUOTENAME(USER_NAME()) + N' WITH DEFAULT_SCHEMA = null' EXEC sp_executesql @sql END]
via JIRA by Gary Plante, 1 year ago
liquibase.exception.DatabaseException: Incorrect syntax near the keyword 'null'. [Failed SQL: IF USER_NAME() <> N'dbo' BEGIN DECLARE @sql [nvarchar](MAX) SELECT @sql = N'ALTER USER ' + QUOTENAME(USER_NAME()) + N' WITH DEFAULT_SCHEMA = null' EXEC sp_executesql @sql END]
via JIRA by Serano Colameo, 1 year ago
liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to https://svn.<..> with driver oracle.jdbc.driver.OracleDriver. Possibly the wrong driver for the given database URL
via JIRA by Serano Colameo, 1 year ago
liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to https://svn.<..> with driver oracle.jdbc.driver.OracleDriver. Possibly the wrong driver for the given database URL
java.sql.SQLException: Incorrect syntax near the keyword 'null'.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:372)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2988)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2421)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:671)
at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:613)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:572)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:809)
at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:314)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:122)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:112)
at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:123)
at liquibase.integration.commandline.Main.doMigration(Main.java:915)
at liquibase.integration.commandline.Main.run(Main.java:180)

Users with the same issue

72 times, 6 months ago
3 times, 8 months ago
Once, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago

Write tip

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