cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

ODBC on Windows -- Where to specify Catalog name?

John_Rotenstein
New Contributor II

We are attempting to connect a Windows ODBC application to Unity Catalog.

The Configure the Databricks ODBC and JDBC drivers documentation has a section titled "ODBC configuration and connection parameters" that mentions a configuration parameter called Catalog that sets the Default Catalog.

However, we cannot figure out where to put this parameter in the Windows ODBC Data Sources interface.

Has anyone managed to configure a Windows DSN to point to a specific Databricks catalog?

5 REPLIES 5

daniel_sahal
Esteemed Contributor

@John_Rotenstein You just need to build a connection string

Driver=<path-to-driver>;Host=<server-hostname>;Port=443;HTTPPath=<http-path>;ThriftTransport=2;SSL=1;AuthMech=3;UID=token;PWD=<personal-access-token>;Schema=<schema>;Catalog=<catalog>

Ah! So are you saying that I would need to configure the application with a Connection String instead of using the ODBC Data Source Administrator DSN UI?

Or can I put that Connection String somewhere in the DNS configuration?

Krishnamatta
New Contributor III

Hi John,

Catalog is optional, you don't need to provide in the DSN UI. 

milieere
New Contributor II

But how is this possible to set directly in Windows? I need to set both catalog and schema else the default query to get tables is nonsense.

Thanks for any input.

BTW. I hate windows, doing this on Linux is soo much easier.

ChrisFarmer
New Contributor II

I got this working by adding an entry for catalog in this location in the registry

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\ODBC\ODBC.INI\Simba Spark

 

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!