Reference

Endpoint Read Table Rows


Name

read_table_data

Description

Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table. [API reference]

Parameters

Parameter Required Options
Name: TableId

Label: TableId

YES
Name: ProjectId

Label: ProjectId

Leave this value blank to use ProjectId from connection settings
Name: DatasetId

Label: DatasetId

Leave this value blank to use DatasetId from connection settings

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
-Dynamic- DT_WSTR nvarchar(4000) 4000
[Dynamic Column]_DT DT_DBTIMESTAMP datetime
If the column you are looking for is missing, consider customizing Google BigQuery Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use Google BigQuery Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - Google BigQuery
Read / write Google BigQuery data inside your app without coding using easy to use high performance API Connector
Google BigQuery
Read Table Rows
Required Parameters
TableId Fill-in the parameter...
Optional Parameters
ProjectId
DatasetId
ArrayTransformType TransformComplexTwoDimensionalArray
ArrayTransRowValueFilter $.f[*].v
SSIS API Source - Read from table or endpoint

API Destination

API Destination - Google BigQuery
Read / write Google BigQuery data inside your app without coding using easy to use high performance API Connector
Google BigQuery
Read Table Rows
Required Parameters
TableId Fill-in the parameter...
Optional Parameters
ProjectId
DatasetId
ArrayTransformType TransformComplexTwoDimensionalArray
ArrayTransRowValueFilter $.f[*].v
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Read table rows

SELECT * FROM read_table_data
WITH
(
    "TableId" = 'abcd-1234-tableid'
)

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Read table rows

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM read_table_data
WITH
(
    "TableId" = ''abcd-1234-tableid''
)';

EXEC (@MyQuery) AT [LS_TO_GOOGLE_BIGQUERY_IN_GATEWAY];