Google Sheets JDBC Driver

Read, Write, and Update Google Sheets through JDBC

Easily connect live Google Sheets data with Java-based BI, ETL, Reporting, & Custom Apps.


  download   buy now


Other Google Technologies


Google Sheets Logo

The Google Sheets JDBC Driver enables users to connect with live Google Sheets data, directly from any applications that support JDBC connectivity. Easily connect Java applications with real-time data from spreadsheets stored in Google Docs. Use Google Sheets to manage the data that powers your applications.

Features

  • Access Google Spreadsheet data as an entire worksheet or from discrete ranges of data within a worksheet
  • Represent discrete blocks of data as tables through automatic detection or by manually specifying ranges of data
  • Optionally specify if the first row of data should be used for field names
  • Read tables that are oriented horizontally or vertically
  • Powerful metadata querying enables SQL-like access to non-database sources
  • Push down query optimization pushes SQL operations down to the server whenever possible, increasing performance
  • Client-side query execution engine, supports SQL-92 operations that are not available server-side
  • Connect to live Google Sheets data, for real-time data access
  • Full support for data aggregation and complex JOINs in SQL queries
  • Secure connectivity through modern cryptography, including TLS 1.2, SHA-256, ECC, etc.
  • Seamless integration with leading BI, reporting, and ETL tools and with custom applications

Specifications

  • JDBC Driver for Google Sheets with bi-directional access.
  • Write SQL, get Google Sheets data. Access Google Sheets through standard Java Database Connectivity.
  • Codeless integration with popular BI, Reporting, & ETL Tools.
  • Integrate Java Apps with Google Sheets GoogleSpreadsheet, and more!
  • Full Unicode support for data, parameter, & metadata.
  • Support for 32-bit and 64-bit operating systems.


AVAILABLE IN:
JDBC DESKTOP SUBSCRIPTIONS
200+ JDBC Drivers For Real-Time BI & Reporting.
LEARN MORE

Where can I use the Google Sheets JDBC Driver?

JDBC Access to Google Sheets

Full-featured and consistent SQL access to any supported data source through JDBC


  • Certified Compatibility*

    Our drivers undergo extensive testing and are certified to be compatible with leading analytics and reporting applications like SAP Crystal Reports, Pentaho, Business Objects, Crystal Reports and many more.

  • Metadata Discovery

    Full support for JDBC DatabaseMetaData provides extensive schema discovery capabilities. Explore tables, columns, keys, and other data constructs based on user identity.

  • Developer Friendly

    Design-time support for all major Java IDEs, including Eclipse, IntelliJ, and NetBeans.

  • JDBC Remoting

    Our exclusive remoting feature allows hosting the JDBC connection on a server to enable connections from various clients on any platform (Java, .NET, C++, PHP, Python), using any standards-based technology (ODBC, JDBC, etc.). JDBC Remoting is enabled using the popular MySQL wire protocol server.

  • Replication and Caching

    Our replication and caching commands make it easy to copy data to local and cloud data stores such as Oracle, SQL Server, Google Cloud SQL, etc. The replication commands include many features that allow for intelligent incremental updates to cached data.

  • String, Date, Numeric SQL Functions

    The driver includes a library of over 50 functions that can manipulate column values into the desired result. Popular examples include Regex, JSON, and XML processing functions.

  • Collaborative Query Processing

    Our drivers enhance the data source's capabilities by additional client-side processing, when needed, to enable analytic summaries of data such as SUM, AVG, MAX, MIN, etc.

  • Easily Customizable and Configurable

    The data model exposed by our JDBC Drivers can easily be customized to add or remove tables/columns, change data types, etc. without requiring a new build. These customizations are supported at runtime using human-readable schema files that are easy to edit.

  • Secure Connectivity

    Includes standard Enterprise-class security features such as TLS/ SSL data encryption for all client-server communications.

JDBC Driver Performance

With traditional approaches to remote access, performance bottlenecks can spell disaster for applications. Regardless if an application is created for internal use, a commercial project, web, or mobile application, slow performance can rapidly lead to project failure. Accessing data from any remote source has the potential to create these problems. Common issues include:

  1. Network Connections - Slow network connections and latency issues are common in mobile applications.
  2. Service Delays - Delays due to service interruptions, resulting in server hardware or software updates.
  3. Large Data - Intentional or unintentional requests for large amounts of data.
  4. Disconnects - Complete loss of network connectivity.

The CData JDBC Driver for Google Spreadsheets solves these issues by supporting powerful smart caching technology that can greatly improve the performance and dramatically reduce application bottlenecks.

Smart Caching

Smart caching is a configurable option that works by storing queried data into a local database. Enabling smart caching creates a persistent local cache database that contains a replica of data retrieved from the remote source. The cache database is small, lightweight, blazing-fast, and it can be shared by multiple connections as persistent storage.

Caching with our JDBC Drivers is highly configurable, including options for:

  • Auto Cache - Maintain an automatic local cache of data on all requests. The provider will automatically load data into the cache database each time you execute a SELECT query. Each row returned by the query will be inserted or updated as necessary into the corresponding table in the cache database.
  • Explicit Cache - Cache only on demand. Developers decide exactly what data gets stored in the cache and when it is updated. Explicit caching provides full control over the cache contents by using explicit execution of CACHE statements.
  • No Cache - All requests access only live data and no local cache file is created.

This powerful caching functionality increases application performance and allows applications to disconnect and continue limited functioning without writing code for additional local storage and/or data serialization/deserialization.

More information about JDBC Driver caching and best caching practices is available in the included help files.

Enterprise-Class Remoting

MySQL/SQL Database entry points for Google Sheets Data

The CData JDBC drivers include powerful fully-integrated remoting capabilities that makes Google Sheets data accessible from virtually anywhere. The drivers include the optional ability to accept incoming SQL and MySQL client connections and service standard database requests.

With the CData JDBC drivers, users can interact with Google Sheets data from any client that supports SQL Server or MySQL: from web & mobile applications, to CRM and CMS systems, BI tools like SQL Server Analysis Services, and even through popular management applications like MySQL Workbench.

  • Access Google Sheets data from virtually any application that can access external data. Applications that can access SQL Server or MySQL data can now connect to Google Sheets with this driver.
  • Connect Google Sheets data with popular BI tools like SQL Server Analysis Services.
  • Enable enterprise Google Sheets data integration through SQL Linked Server connectivity
  • Includes support for the MySQL and SQL (TDS) remote access protocols - industry standards for remote database connectivity.
  • Offers advanced wire-protocol SSL security for remote connectivity


Enterprise-class JDBC Connectivity

The Google Sheets JDBC Driver offers the most natural way to access Google Sheets data from any Java/J2EE application. Simply use the Google Sheets Driver to connect and access data just as you would access any traditional database. The driver is completely self-contained - no additional software installation is required!

Google Sheets Integration

The Google Sheets Driver has the same JDBC architecture as the JDBC drivers for MySQL and OLEDB, including Connection, Statement and ResultSet objects. Because of this you can now access Google Sheets data in an easy, familiar way. You can use the Google Sheets Driver through popular IDEs (Eclipse, IntelliJ, NetBeans, etc.), in code through familiar classes, and in data controls available through Swing, Eclipse SWT Widgets, etc.

For example:

Connection conn =
	DriverManager.getConnection("jdbc:googlesheets:user=myuseraccount;password=mypassword;");

boolean ret = stat.execute("SELECT * FROM GoogleSpreadsheet");
ResultSet rs=stat.getResultSet();
while(rs.next()){
  for(int i=1;i<=rs.getMetaData().getColumnCount();i++)
  {
    System.out.println(rs.getMetaData().getColumnName(i) +"="+rs.getString(i));
  }
}


More Than Read-Only: Full Update/CRUD Support

Google Sheets Driver goes beyond read-only functionality to deliver full support for Create, Read Update, and Delete operations (CRUD). Your end-users can interact with the data presented by the Google Sheets Driver as easily as interacting with a database table.

Connection conn =
	DriverManager.getConnection("jdbc:googlesheets:user=myuseraccount;password=mypassword;");

String query = "UPDATE GoogleSpreadsheet SET Where= ...";

PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, "Location");
pstmt.setString(2, "UID");
pstmt.execute();
int count=pstmt.getUpdateCount();

Frequently Asked Google Sheets JDBC Driver Questions

Learn more about Google Sheets JDBC drivers for data and analytics integration


Yes, Google Sheets can be used with Java . CData provides a JDBC type 4/5 driver for Google Sheets that allows Java applications to connect to Google Sheets using standard JDBC APIs. This driver enables you to execute SQL queries, manage connections, and process data stored in Google Sheets from Java, or any Java-based application that supports JDBC.

Not natively. However, CData offers a JDBC driver for Google Sheets that allows you to connect to Google Sheets data from any Java-based application that supports JDBC, just like you would access a traditional database. This can be useful for tasks like:

  • Accessing Google Sheets from applications: Connect to Google Sheets data in popular tools and applications including Informatica, Talend, Apache Spark, Apache NiFi, and many others.
  • Real-time data: You can work with live Google Sheets data within these applications, enabling tasks like reporting and analysis.
  • Connecting systems: Build data integrations between Google Sheets and other systems.

The Google Sheets JDBC driver is a pure Java type 4/5 driver with comprehensive ANSI SQL-92 support. This means that virtually any application that can connect to data via JDBC, can use the CData JDBC driver for real-time integration. Download a fully functional free trial of the Google Sheets JDBC driver today to get started.

Yes, the CData JDBC driver for Google Sheets provides universal JDBC data connectivity for Google Sheets. The Google Sheets JDBC driver offers a simple SQL-based layer of abstraction that simplifies real-time data access for users and applications, enabling them to communicate with Google Sheets using a standardized set of functions. Virtually any application on any platform can use the CData JDBC driver for real-time integration.

Connectivity to Google Sheets via JDBC is easy. First, download and install the Google Sheets JDBC driver.

Once the installation is complete, navigate to the JDBC driver documentation page. Here, you'll find a wealth of information about the installed driver. The step-by-step instructions for creating a DSN and using it to connect to Google Sheets via JDBC are just the beginning. The documentation also provides extensive configuration details for using the Google Sheets JDBC driver with all your favorite applications and development tools, ensuring you have all the support you need.

All of the CData JDBC drivers, including the Google Sheets JDBC driver are available for download online. To get started, download a fully functional free trial of the Google Sheets JDBC driver today.

To install the Google Sheets driver, simply download one of the Google Sheets JDBC driver installers available online. The installers are comprehensive setup utilities that will install all the components required to use the Google Sheets JDBC driver on your system.