Giter VIP home page Giter VIP logo

Comments (3)

dataders avatar dataders commented on August 16, 2024

@prestonh0 to what platform are you trying to use with dbt?

Microsoft Fabric straight up does not support SQL Auth, however "classic" Synapse (this repo), does.

Platform dbt adapter hostname like
Azure Synapse Analytics Dedicated SQL Pools dbt-synapse (this repo) <INSTANCE>.sql.azuresynapse.net,1433
Microsoft Fabric Synapse Datawarehouse dbt-fabric (different rep) <LONG_GUID>.datawarehouse.pbidedicated.windows.net

from dbt-synapse.

prestonh0 avatar prestonh0 commented on August 16, 2024

profiles.yml

project_dbt:
target: dev
outputs:
dev:
type: synapse
driver: 'ODBC Driver 18 for SQL Server'
host: myhostname.sql.azuresynapse.net
port: 1433
database: mydatabase
schema: dbo
authentication: sql
user: adminuser
password: 'adminpass'

Using Synapse classic sql dedicated pools, with dbt debug --log-level debug I get this:

15:23:02 Registered adapter: synapse=1.7.1
15:23:02 Acquiring new synapse connection 'debug'
15:23:02 Using synapse connection "debug"
15:23:02 On debug: select 1 as id
15:23:02 Opening a new connection, currently in state init
15:23:02 fabric adapter: Using connection string: DRIVER={ODBC Driver 18 for SQL Server};SERVER=myhostname.sql.azuresynapse.net,1433;Database=mydatabase;UID={adminuser};PWD=***;encrypt=No;TrustServerCertificate=No;APP=dbt-synapse/1.7.4;ConnectRetryCount=1
15:23:02 fabric adapter: Error running SQL: select 1 as id
15:23:02 fabric adapter: Rolling back transaction.
15:23:02 On debug: No close available on handle
15:23:02 Connection test: [ERROR]

15:23:02 1 check failed:
15:23:02 dbt was unable to connect to the specified database.
The database returned the following error:

Database Error
('01S00', '[01S00] [Microsoft][ODBC Driver Manager] Invalid connection string attribute (0) (SQLDriverConnect)')

from dbt-synapse.

prestonh0 avatar prestonh0 commented on August 16, 2024

FYI I got this working. My password had } in it, replaced with }} and it worked.

from dbt-synapse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.