![]() |
VOOZH | about |
This article demonstrates using the CData ADO.NET Provider for BigQuery in PowerBuilder, showcasing the ease of use and compatibility of these standards-based controls across various platforms and development technologies that support Microsoft .NET, including Appeon PowerBuilder.
This article shows how to create a basic PowerBuilder application that uses the CData ADO.NET Provider for BigQuery to perform reads and writes.
CData simplifies access and integration of live Google BigQuery data. Our customers leverage CData connectivity to:
Most CData customers are using Google BigQuery as their data warehouse and so use CData solutions to migrate business data from separate sources into BigQuery for comprehensive analytics. Other customers use our connectivity to analyze and report on their Google BigQuery data, with many customers using both solutions.
For more details on how CData enhances your Google BigQuery experience, check out our blog post: https://www.cdata.com/blog/what-is-bigquery
DataSetId=MyDataSetId;ProjectId=MyProjectId;InitiateOAuth=GETANDREFRESH;
Google uses the OAuth authentication standard. To access Google APIs on behalf of individual users, you can use the embedded credentials or you can register your own OAuth app.
OAuth also enables you to use a service account to connect on behalf of users in a Google Apps domain. To authenticate with a service account, register an application to obtain the OAuth JWT values.
In addition to the OAuth values, specify the DatasetId and ProjectId. See the "Getting Started" chapter of the help documentation for a guide to using OAuth.
<DataGrid AutoGenerateColumns="False" Margin="13,249,12,14" Name="datagrid1" TabIndex="70" ItemsSource="{Binding}">
<DataGrid.Columns>
<DataGridTextColumn x:Name="idColumn" Binding="{Binding Path=Id}" Header="Id" Width="SizeToHeader" />
<DataGridTextColumn x:Name="nameColumn" Binding="{Binding Path=OrderName}" Header="OrderName" Width="SizeToHeader" />
...
</DataGrid.Columns>
</DataGrid>
Once the visual elements have been configured, you can use standard ADO.NET objects like Connection, Command, and DataAdapter to populate a DataTable with the results of an SQL query:
System.Data.CData.GoogleBigQuery.GoogleBigQueryConnection conn conn = create System.Data.CData.GoogleBigQuery.GoogleBigQueryConnection(connectionString) System.Data.CData.GoogleBigQuery.GoogleBigQueryCommand comm comm = create System.Data.CData.GoogleBigQuery.GoogleBigQueryCommand(command, conn) System.Data.DataTable table table = create System.Data.DataTable System.Data.CData.GoogleBigQuery.GoogleBigQueryDataAdapter dataAdapter dataAdapter = create System.Data.CData.GoogleBigQuery.GoogleBigQueryDataAdapter(comm) dataAdapter.Fill(table) datagrid1.ItemsSource=table.DefaultView
The code above can be used to bind data from the specified query to the DataGrid.
Download a free trial of the Google BigQuery Data Provider to get started:
Download NowLearn more:
👁 Google BigQuery IconRapidly create and deploy powerful .NET applications that integrate with Google BigQuery data including Tables and Datasets.