Updated on

Teradata.Database is a Power Query M function that connects to a Teradata database on a specified server and retrieves SQL tables and views. The function returns a table with the Teradata database tables and views, and provides multiple optional parameters to customize the connection and query.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365


   server as text,
   optional options as nullable record,
) as table


Returns a table of SQL tables and views from the Teradata database on server server. The port may be optionally specified with the server, separated by a colon. An optional record parameter, options, may be specified to control the following options:

  • CreateNavigationProperties : A logical (true/false) that sets whether to generate navigation properties on the returned values (default is true).
  • NavigationPropertyNameGenerator : A function that is used for the creation of names for navigation properties.
  • Query : A native SQL query used to retrieve data. If the query produces multiple result sets, only the first will be returned.
  • CommandTimeout : A duration that controls how long the server-side query is allowed to run before it is canceled. The default value is ten minutes.
  • ConnectionTimeout : A duration that controls how long to wait before abandoning an attempt to make a connection to the server. The default value is driver-dependent.
  • HierarchicalNavigation : A logical (true/false) that sets whether to view the tables grouped by their schema names (default is false).
The record parameter is specified as [option1 = value1, option2 = value2…] or [Query = “select …”] for example.

BI Gorilla Blog

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/teradata-database