I run a command dbt test
and gets error because I don’t have access to dbo schema.
Database Error in test ... (models/sources.yml)
('42000', '[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The specified schema name "dbo" either does not exist or you do not have permission to use it. (2760) (SQLExecDirectW)')
Generated code (from here …/target/run/models/sources.yml/test.sql) contains dbo
schema for a temporary view
EXEC('create view
dbo.testview_3707
as .....
There is the only ‘dbt’ schema In my profiles.yml and all models are correctly created there.
How to change the dbo schema to dbt?