The problem I’m having is that I can not connect to sql server using dbt core.
Here is an example of my profiles.yml file
firsttry:
target: dev
outputs:
dev:
type: sqlserver
driver: 'ODBC Driver 17 for SQL Server' # (The ODBC Driver installed on your system)
server: Sbrass
port: 1433
database: dbt_2
schema: dbo
windows_login: True
I keep getting the error. Any ideas on what is causing this?
>Database Error
('08001', '[08001] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: No connection could be made because the target machine actively refused it.\r\n (10061) (SQLDriverConnect); [08001] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0); [08001] [Microsoft][ODBC Driver 17 for SQL Server]Invalid connection string attribute (0); [08001] [Microsoft][ODBC Driver 17 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. (10061)')
Did you ever solve this? I was getting the same error while running tests on a local machine. I was able to get around it by adding the following pair to the profiles.yml file: