WithTables
Last updated: 10/28/2026The WithTables script keyword is used as an element within an IncludeModel statement. WithTables specifies which tables from the data product to integrate into the data model of the application.
For details and full syntax specification, see IncludeModel.
Syntax:
WithTables Table table_name1 Fields fieldlist Connection dataset_connection {, Table table_nameN Fields fieldlist Connection dataset_connection,... }
| Argument or keyword | Description |
|---|---|
| Table | Keyword specifying the use of a table. Loads one table per Table statement. |
| table_name |
Specifies the name of the table to use in the data model. Follow the quoting conventions documented at Using quotation marks in the script. Examples: MyDataTable [My Data Table] "My Data Table" |
| Fields | Keyword instructing to use the specified fields (fieldlist) from the table to integrate into the data model. |
| fieldlist |
List of fields from the table referenced in the preceding Table statement. You can use * to use all fields from the table, or provide a comma-separated list of specific fields. Examples: Amount, Quantity, Region [Amount], [Quantity], [Region] |
| Connection | Keyword specifying to use the dataset specified in dataset_connection. |
| dataset_connection |
A connection that can load the dataset containing the referenced table. Depending on the location of the connection, use one of the following formats:
Examples: [CustomerOrders:DataFiles] [SalesData2026:SnowflakeSales] |