Hi,
I try to create a new Cuba project (latest plugin and framework version) with datasource mssql.
The db should use another schema then dbo.
But, how to tell Cuba not to use dbo schema?
I tried currentSchema=schemaname in the URL, additional parameters…
nothing works.
I only get this error message:
Execution failed for task ‘:app-core:updateDb’.
com.microsoft.sqlserver.jdbc.SQLServerException: The specified schema name “dbo” either does not exist or you do not have permission to use it.
I tried that in multiple ways… but it does not work.
Here as an example my actual settings I try to use:
cuba.dataSourceProvider = application
cuba.dataSource.jdbcUrl=jdbc:sqlserver://servername.database.windows.net;databaseName=dbname-sql-db-dev;authentication=activedirectorypassword;currentSchema=jmix_test_cuba
cuba.dataSource.username = user@domain.com
cuba.dataSource.password = pwd$01
cuba.dataSource.dbName = dbname
cuba.dataSource.connectionParams = -sql-db-dev;authentication=activedirectorypassword;currentSchema=jmix_test_cuba
cuba.dataSource.host = servername.database.windows.net
One other topic is, that the Studio GUI does not accept DB names like: dbname-sql-db-dev
The only way to get it running, is splitting the DBName and put the second part into the connectionParams.
The error message I get with this settings:
Execution failed for task ‘:app-core:updateDb’.
com.microsoft.sqlserver.jdbc.SQLServerException: The specified schema name “dbo” either does not exist or you do not have permission to use it.