JDBC Driver¶
Note
Version 3.21.0 introduced support for Google Cloud Storage regional endpoints.
Earlier versions of the driver do not support Google Cloud Storage regional endpoints. Please ensure that any workloads that use this driver do not require support for regional endpoints on Google Cloud. If you have questions about this, please contact Snowflake Support.
Snowflake provides a JDBC type 4 driver that supports core JDBC functionality. The JDBC driver must be installed in a 64-bit environment and requires Java LTS (Long-Term Support) versions 1.8 or higher.
Starting with version 5.0.0, the driver is built on the Universal Core: the JDBC classes
stay in the JVM and load a shared native library with JNI. The jdbc:snowflake: URL and the JDBC API are the same as in
version 4.x, except where Migrating from JDBC Driver 4.x to 5.x notes differences.
Choose your task¶
- Install for the first time: Start with Downloading / integrating the JDBC Driver, which describes the 5.x packages.
- Migrate from 4.x to 5.x: Read Migrating from JDBC Driver 4.x to 5.x before you change the dependency.
- Stay on 4.x: The 4.x instructions are in the “Version 4.x” tabs and sections of the pages below. The 4.x JAR files remain on Maven Central.
- Migrate from 3.x to 4.x: Use Migrating from JDBC Driver 3.x to JDBC Driver 4.x first, then migrate to 5.x.
The driver can be used with most client tools/applications that support JDBC for connecting to a database server. sfsql, the now-deprecated command-line client provided by Snowflake, is an example of a JDBC-based application.
For a complete list of the connection parameters the driver accepts, including what each one does, see JDBC Driver connection parameter reference.
Next Topics: