skip to main content
Using the driver : Connecting from an application : 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 Driver Manager using the DriverManager.getConnection() method. This method specifies a string containing a connection URL. This example shows how to establish a connection to a data source:
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 the connection