Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SQL Server: Support explicit table schema prefix in queries #154

@robvari

Description

@robvari

Hi.

We have an issue when using Ktorm with SQL Server. The queries do not work with a db user which has no default schema, since the schema defined in the connection (e.g. via spring data source) is ignored / not supported by the SQL server driver.

It would be good to be able to enforce a schema prefix in the queries / pass a schema in the entity definition.

E.g.

object DimDate : Table<Nothing>("DimDate", "MySchema") { ... }

=> 

SELECT * FROM MySchema.DimDate

It seems this is not possible right now. Is there a suggested work around?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions