dotConnect for Google BigQuery Documentation
Devart.Data.BigQuery Namespace / BigQueryConnection Class / BigQueryConnection Constructor / BigQueryConnection Constructor(String)
The connection used to connect to Google BigQuery.
Example

On this page
    BigQueryConnection Constructor(String)
    On this page
    Initializes a new instance of the BigQueryConnection class when given a string containing the connection string.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal connectionString As String _
    )
    public BigQueryConnection( 
       string connectionString
    )

    Parameters

    connectionString
    The connection used to connect to Google BigQuery.
    Remarks
    When a new instance of BigQueryConnection is created, the read/write properties are set to the following initial values unless they are specifically set using their associated keywords in the ConnectionString property.
    Example
    The following example creates and opens a BigQueryConnection.
    public void CreateBigQueryConnection()
    {
      string myConnString = 
          @"Authentication Type=ServiceAccount;ServiceAccount Json=C:\keys\service-account.json;Project Id=your_project;DataSet Id=your_dataset;License Key=**********";
      BigQueryConnection bigQueryConnection = new BigQueryConnection(myConnString);
      bigQueryConnection.Open();
      //Do something
      bigQueryConnection.Close();
    }
    Public Sub CreateBigQueryConnection()
      Dim myConnString As String = _
          "Authentication Type=ServiceAccount;ServiceAccount Json=C:\keys\service-account.json;Project Id=your_project;DataSet Id=your_dataset;License Key=**********"
      Dim bigQueryConnection As New BigQueryConnection(myConnString)
      bigQueryConnection.Open()
      'Do something
      bigQueryConnection.Close()
    End Sub
    See Also