cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

How setup jdbc connection to snowflake

emanueol
New Contributor III

Hi, im on free Databricks tier account and need help understanding how create jdbc connection to snowflake, as I'm getting error:

Catalog > (+) > Create a connection:

  Connection name= jdbc_snowflake

  Connection type= JDBC

  [next]

  

  Url= jdbc❄️//org-acc.snowflakecomputing.com/?warehouse=COMPUTE_WH&db=db

  [Create connection]

 

*****

Failed to create connection

Connection type JDBC requires environment settings

*****

 

After LLM/googling, I read there's concept of "Environment", but don't see option "Environments" on webUI, neither see option "Settings" in workspace.

Any suggestions? Thanks 👍

 

UPDATE: Fount an "Environments" section on top-right profile icon > Settings > Compute , and seems there's 1 already existing (seems it just specifies python and scala versions).. anyway im only interested in creating a jdbc CONNECTION, not important any development stuff.

Screenshot_20260207-115541.pngScreenshot_20260207-115657-display-0.png.pngScreenshot_20260207-115728-display-0.png.pngScreenshot_20260207-115805-display-0.png.png

3 REPLIES 3

WiliamRosa
Databricks Partner

Free Edition users only have access to serverless compute resources.
https://docs.databricks.com/aws/en/getting-started/free-edition-limitations

Wiliam Rosa
Data Engineer | Machine Learning Engineer
LinkedIn: linkedin.com/in/wiliamrosa

emanueol
New Contributor III

Hi, unsure of what that means William? I didn't found in your link about free tier constraints anything related to create jdbc connections or environments.

My post is simply reporting that trying create a JDBC CONNECTION kto snowflake host account), DBX says an environment is needed?

 I didn't found in your link about free tier constraints anything related to create jdbc connections or environments. So logically are you saying free tier don't support creating an environment? 

I managed to find default account configuration a default environment (see screenshots) seems just python and scala versions.. so this is out of scope of "serverless" realm which is only thing supported br free tier is it?

So an environment its something more static, not a on-demand serverless thing ?

Thanks 

SteveOstrowski
Databricks Employee
Databricks Employee

Hi @emanueol,

The error you are seeing ("Connection type JDBC requires environment settings") is because you selected "JDBC" as the connection type, which is a generic connector intended for databases that do not have a dedicated connection type in Databricks. JDBC connections require you to configure an environment with the appropriate JDBC driver JAR, which is why Databricks is asking for environment settings.

The good news is that Snowflake has its own dedicated, first-class connection type in Databricks, so you do not need a generic JDBC connection at all. Here is how to set it up properly.


OPTION 1: USE THE NATIVE SNOWFLAKE CONNECTION TYPE (RECOMMENDED)

Instead of selecting "JDBC" as the connection type, select "Snowflake" directly. Databricks has built-in support for Snowflake through Lakehouse Federation, which handles all the JDBC plumbing for you behind the scenes.

Through the Catalog Explorer UI:

1. Go to Catalog, click the (+) button, then select "Add a connection"
2. For Connection type, choose "Snowflake" (not JDBC)
3. Fill in the connection details:
- Host: your-account.snowflakecomputing.com
- Port: 443
- Authentication: Username/Password or OAuth
4. Click "Create connection"

Or through SQL:

CREATE CONNECTION snowflake_conn
TYPE SNOWFLAKE
OPTIONS (
host 'your-account.snowflakecomputing.com',
port '443',
user secret('your-scope', 'sf-user'),
password secret('your-scope', 'sf-password'),
sfWarehouse 'COMPUTE_WH'
);

Then create a foreign catalog to browse and query your Snowflake tables:

CREATE FOREIGN CATALOG snowflake_catalog
USING CONNECTION snowflake_conn
OPTIONS (database 'your_snowflake_db');

After that, you can query Snowflake tables directly:

SELECT * FROM snowflake_catalog.schema_name.table_name;

Docs: https://docs.databricks.com/en/query-federation/snowflake.html


OPTION 2: USE THE SNOWFLAKE CONNECTOR IN NOTEBOOKS

If you want to read Snowflake data into a DataFrame for transformations in a notebook, you can use the built-in Snowflake Spark connector. No connection object is needed for this approach:

snowflake_df = (spark.read
.format("snowflake")
.option("host", "your-account.snowflakecomputing.com")
.option("port", "443")
.option("user", "your_username")
.option("password", "your_password")
.option("sfWarehouse", "COMPUTE_WH")
.option("database", "your_database")
.option("schema", "your_schema")
.option("dbtable", "your_table")
.load()
)

snowflake_df.show()

The Snowflake connector is pre-installed on Databricks Runtime 11.3 LTS and above, so no additional driver setup is needed.

Docs: https://docs.databricks.com/en/connect/external-systems/snowflake.html


IMPORTANT NOTE ABOUT THE FREE TIER

Since you mentioned you are on the free Databricks tier, be aware of a few things:

- The free edition provides serverless compute and a Unity Catalog-enabled workspace, which is great.
- Lakehouse Federation (Option 1) requires a Pro or Serverless SQL warehouse, or a cluster running Databricks Runtime 13.3 LTS or above with Standard access mode.
- If you encounter permission errors when creating the connection, check that your account has the CREATE CONNECTION privilege on the metastore. On the free tier you should be the metastore admin by default.
- Make sure your Snowflake account is network-accessible from Databricks. The free tier has some outbound network restrictions, so if Snowflake connectivity is blocked, that could be a separate issue to troubleshoot.

Free edition limitations reference: https://docs.databricks.com/en/getting-started/free-edition-limitations.html


SUMMARY

The key fix is to change your connection type from "JDBC" to "Snowflake" in the connection setup wizard. The native Snowflake connection type handles everything for you without needing custom environment configurations or driver JARs.

Hope this helps get you connected. Let me know if you run into any other issues during setup.

* This reply used an agent system I built to research and draft this response based on the wide set of documentation I have available and previous memory. I personally review the draft for any obvious issues and for monitoring system reliability and update it when I detect any drift, but there is still a small chance that something is inaccurate, especially if you are experimenting with brand new features.