skip to main content
Quick Start: Progress DataDirect for JDBC for Google BigQuery Driver : Connecting to a DataSource : Connecting using the JDBC Driver Manager
  

Try DataDirect Drivers Now

Connecting using the JDBC Driver Manager

One way to connect to a Google BigQuery instance is through the JDBC DriverManager using the DriverManager.getConnection() method. As the following example shows, this method specifies a string containing a connection URL.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:googlebigquery:Project=myproject;Dataset=mydataset;
AccessToken=abcdefghi12345678;RefreshToken=wxyz123456789;
ClientID=123abc.apps.googleusercontent.com;ClientSecret=ab123xy");
* Passing the connection URL
* Testing a DriverManager connection