BigQueryCommand Constructor(String,BigQueryConnection)
Initializes a new instance of the
BigQueryCommand class with the text of the query and a
BigQueryConnection object.
The following example creates a
BigQueryCommand and sets some of its properties.
|
|---|
public void CreateCommand()
{
BigQueryConnection bigQueryConnection = new BigQueryConnection(
@"Authentication Type=ServiceAccount;ServiceAccount Json=C:\keys\service-account.json;Project Id=your_project;DataSet Id=your_dataset;License Key=**********");
string mySelectQuery = "SELECT * FROM your_project.your_dataset.employees";
BigQueryCommand bigQueryCommand = new BigQueryCommand(mySelectQuery, bigQueryConnection);
bigQueryCommand.FetchSize = 100;
} |
|
|---|
Public Sub CreateCommand()
Dim bigQueryConnection As New BigQueryConnection( _
"Authentication Type=ServiceAccount;ServiceAccount Json=C:\keys\service-account.json;Project Id=your_project;DataSet Id=your_dataset;License Key=**********")
Dim mySelectQuery As String = _
"SELECT * FROM your_project.your_dataset.employees"
Dim bigQueryCommand As New BigQueryCommand(mySelectQuery, bigQueryConnection)
bigQueryCommand.FetchSize = 100
End Sub |