mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
CLI create uses Windows login as schema name #6123
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FabianClemenz on GitHub (Dec 7, 2018).
Hi,
i try to create schemas on a MSSQL Server. It uses Windows Authentication to authorize users.
When i use the CLI command to create the schemas, it creates the Model like:
Domain\User.Table_Name
is there a way to provide a schema name? Or prevent doctrine from using the windows user & domain?
System:
@Ocramius commented on GitHub (Dec 7, 2018):
In theory, you should be able to select a specific schema at connect time: https://www.doctrine-project.org/projects/doctrine-dbal/en/2.9/reference/configuration.html#pdo-sqlsrv-sqlsrv
@FabianClemenz commented on GitHub (Dec 7, 2018):
Thanks for the fast reply. It connects to the right database, but prefixes the tablename with my windows domain and user on create. I wanted to avoid this
@FabianClemenz commented on GitHub (Dec 7, 2018):
it seems like, only i can see the created tables. Is it possible, to create tables for all users without providing UID/PWD in the config? (using the windows auth from current logged in user)