Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

BigQuery Sample

A sample demonstrating how to invoke BigQuery from C#.

This sample requires .NET Core 2.0 or later. That means using Visual Studio 2017, or the command line. Visual Studio 2015 users can use this older sample.

Links

Build and Run

  1. Follow the set-up instructions in the documentation.

  2. Enable APIs for your project. Click here to visit Cloud Platform Console and enable the BigQuery API.

  3. Edit SimpleApp/Program.cs, and replace YOUR-PROJECT-ID with the id of the project you created in step 1.

  4. From a Powershell command line, run the SimpleApp sample:

    PS C:\...\dotnet-docs-samples\bigquery\api\SimpleApp> dotnet run
    Query Results:
    ------------
    https://stackoverflow.com/questions/13530967: 44672 views
    https://stackoverflow.com/questions/22879669: 34745 views
    https://stackoverflow.com/questions/13221978: 31584 views
    https://stackoverflow.com/questions/6607552: 27736 views
    https://stackoverflow.com/questions/16609219: 26271 views
    https://stackoverflow.com/questions/35159967: 26258 views
    https://stackoverflow.com/questions/10604135: 25860 views
    https://stackoverflow.com/questions/22004216: 23496 views
    https://stackoverflow.com/questions/10644993: 22356 views
    https://stackoverflow.com/questions/11647201: 18547 views
    

Contributing changes

Licensing