Offering an accelerated and unbeatable query performance, Google BigQuery has become a reliable Cloud Data Warehouse & Analytics solution worldwide.

  1. With its on-demand scaling, economical pricing, and the ability to efficiently handle fluctuating workloads, BigQuery provides a reliable and secure cloud platform for businesses of all sizes. 
  2. Often, you may require to transfer your data from BigQuery to your BI Tools for further analytics & reporting purposes. Magnitude Simba provides an easy-to-setup BigQuery ODBC Connector to seamlessly connect to your BI Tool instantly.
  3. Introduced by Microsoft in collaboration with Simba, ODBC(Open Database Connectivity) is a standard API used to access a database.

What is Google BigQuery?

BigQuery is a Cloud-Based Data Warehouse service offered by Google. It is built to handle petabytes of data and can automatically scale as your business flourishes. Some features is as follows

  1. User Friendly
  2. On-Demand Storage Scaling
  3. Real-Time Analytics
  4. BigQuery ML
  5. Optimization Tools 
  6. Secure
  7. Google Environment

What is ODBC?

  • ODBC(Open Database Connectivity) is an open standard Application Programming Interface (API) for accessing both relational and non-relational databases.
  • From a technical point of view, ODBC has based on the Call-Level Interface (CLI) specifications from Open Group and ISO/IEC for database APIs.
  • ODBC allows you to easily connect your BI tools to a data source such as a file, a particular database on a DBMS, or even a live data feed to access databases using Structured Query Language (SQL). 

What is Magnitude Simba?

  • Magnitude Simba is a complete package of data connectivity solutions that enable efficient and effective data access to applications, data platforms, and databases.
  • These solutions include Simba Gateway connectivity as a service, standalone data connector, Simba SDK, as well as managed services with custom-built connectors via rigorous testing and authentication.
  • For instance, the Simba BigQuery ODBC connector allows you to get data from BigQuery to your BI Tool.
Seamlessly Integrate your Data into BigQuery

With continuous real-time data movement, Hevo allows you to integrate your data sources and load it to the destination of your choice with a no-code, easy-to-setup interface. Try our 14-day full-feature access free trial! 

Get Started with Hevo for Free

Configuration of BigQuery ODBC Connector

Step 1: Install and Download Simba Google BigQuery ODBC Connector

  • Step 1: Visit the BigQuery ODBC JDBC Drivers page and download the connector for your Operating System. For this article, the windows version is selected. After downloading the MSI File, open it.
  • Step 2: The BigQuery ODBC Connector Setup window will pop up on your screen. Click on the Next button. 
BigQuery ODBC - ODBC Setup Welcome Page
  • Step 3: For accepting the licensing agreement, click on the Next button.
BigQuery ODBC - ODBC Setup Terms & Conditions Agreement
  • Step 4: Provide the location on your system where you want to install the connector and click on the Next button. 
BigQuery ODBC - ODBC Setup Installation Location
  • Step 5: Finally, click on the Install button. After the BigQuery ODBC connector is completely installed, click on the Finish button to close the setup window.   
BigQuery ODBC - ODBC Setup Install button

Step 2: License Allocation

After you have submitted the form, the driver’s license is sent to your email. Ensure that the file is stored in the /lib/ folder underneath where the connector has been installed.

BigQuery ODBC - ODBC Licesnse file Location

Step 3: Configuring Simba Google BigQuery ODBC Connector

  • Step 1: In your Windows system, click on the SEARCH and navigate to ODBC Administrator.  
BigQuery ODBC - Windows Search Bar
  • Step 2: In the ODBC Administrator window, click on the System DSN tab. Search and click on the Simba GBQ ODBC DSN. Then, click on the CONFIGURE button.
BigQuery ODBC - Select BigQuery as Data Source
  • Step 3: In the DSN setup, configure the settings according to your business needs.
BigQuery ODBC - Settings
  • Step 4: After the configuration is done, click on the TEST button to test the connection.
BigQuery ODBC - Test Connection
  • Step 5: Click on the OK test window to save your settings.   

Troubleshooting Common Issues

How can I make Queries against BigQuery through an ODBC Connection?

To make queries against BigQuery through an ODBC connection, you can follow these general steps:

  • Set up an ODBC Driver: First, you need to install and configure an ODBC driver that supports BigQuery. Google provides an official ODBC driver for BigQuery, which you can download and install on your machine.
  • Set Up ODBC Data Source: With the ODBC driver implemented, set the DSN for the connection. The DSN defines the project’s connection parameters used in the statement, such as the BigQuery Project ID, OAuth credentials, and other settings.
  • Use ODBC-Compliant Tools: Upon successfully configuring an ODBC driver and data source, you will eventually be able to use any ODBC-compliant tool or application to connect with BigQuery. Some of the most common tools include Microsoft Excel, Tableau, or even programming languages such as Python with libraries like pyodbc.

Unable to Authorise ODBC BigQuery connection

To troubleshoot the issue, perform the following steps:

  • Verify service account or user credentials
    • Service Account: If you’re using service account authentication, ensure you have correctly set up and provided the service account credentials (typically JSON format) during the ODBC DSN configuration process.
    • User Authentication: If you’re using user authentication, ensure that the username and password provided in the ODBC configuration are correct and have the required permissions in BigQuery.
  • Check ODBC Driver Configuration
    • DSN Configuration: Double-check the configuration of your ODBC Data Source Name (DSN). 
    • Driver Compatibility: Ensure that the Samba ODBC Driver you use is compatible with BigQuery.
  • Check Permissions in Google Cloud Console
    • IAM Roles: Ensure that your service account or user account has appropriate IAM roles assigned in the Google Cloud Console.

Learn how to link BigQuery with Python to optimize your data analysis. Get practical tips and straightforward instructions for effective setup.

Learn More About:

How to Set Up BigQuery JDBC Connection

Conclusion

  • In this article, you have learned how to effectively set up the BigQuery ODBC Connection.
  • Magnitude Simba is a simple yet powerful solution to seamlessly connect your BigQuery Data Warehouse to your BI Tools.
  • Offering more control and granular configuration options, the Simba BigQuery ODBC Connector allows you to connect and maintain your connection using an easy-to-use interface.
  • As you collect and manage your data across several applications and databases in your business, it is important to consolidate it for complete performance analysis of your business.
  • However, it is a time-consuming and resource-intensive task to continuously monitor the Data Connectors.
  • To achieve this efficiently, you need to assign a portion of your engineering bandwidth to Integrate data from all sources, Clean & Transform it, and finally, Load it to a Cloud Data Warehouse like Google BigQuery, BI Tool, or a destination of your choice for further Business Analytics.
  • All of these challenges can be comfortably solved by a Cloud-based ETL tool such as Hevo Data. 

FAQ on BigQuery ODBC Connection

Do the BigQuery ODBC Drivers support the SQL Query Prefix?

Unlike the Drivers, BigQuery supports switching between legacy SQL dialects and standard SQL dialects using query prefixes. The driver always maintains a specific status regarding the SQL mode used and automatically sets options when creating the connection. The driver does not support switching SQL dialects using query prefixes because the SQL mode is set when the connection is created.

How to connect to BigQuery using ODBC?

To connect to BigQuery using ODBC:
Install and configure an ODBC driver for BigQuery on your local machine.
Use the driver in applications or tools supporting ODBC connections, providing credentials and connection details to access BigQuery data.

Which ODBC connection string is acceptable?

The ODBC connection string format for BigQuery typically includes parameters like Driver, Server, Database, UID, PWD, and others as needed. Specific configurations depend on the ODBC driver you’re using and your authentication method (OAuth, service account).

Sanchit Agarwal
Research Analyst, Hevo Data

Sanchit Agarwal is an Engineer turned Data Analyst with a passion for data, software architecture and AI. He leverages his diverse technical background and 2+ years of experience to write content. He has penned over 200 articles on data integration and infrastructures, driven by a desire to empower data practitioners with practical solutions for their everyday challenges.