Reference

Table SysTables


Description

No description available

Supported Operations

Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.
Method Supported Reference EndPoint
SELECT get_tables
INSERT
UPDATE
UPSERT
DELETE
LOOKUP get_table

Examples

SSIS

Use Cosmos DB Connector in API Source component to read data or in API Destination component to read/write data:

Read from SysTables table using API Source

API Source - Cosmos DB
Connect to your Azure Cosmos DB databases to read, query, create, update, and delete documents and more!
Cosmos DB
SysTables
Optional Parameters
Database Name (keep blank to use default) Case-Sensitive
SSIS API Source - Read from table or endpoint

Read/write to SysTables table using API Destination

API Destination - Cosmos DB
Connect to your Azure Cosmos DB databases to read, query, create, update, and delete documents and more!
Cosmos DB
SysTables
Select
Optional Parameters
Database Name (keep blank to use default) Case-Sensitive
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

List Tables (i.e. Containers)

Lists all containers from the default database specified (Specified for the connection settings)

SELECT * FROM SysTables

List Tables (i.e. Containers) for a specific database

Lists all containers from the specified Database

SELECT * FROM SysTables WITH (Database='MyCosmos DB')

SQL Server

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

List Tables (i.e. Containers)

Lists all containers from the default database specified (Specified for the connection settings)

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM SysTables';

EXEC (@MyQuery) AT [LS_TO_COSMOS_DB_IN_GATEWAY];

List Tables (i.e. Containers) for a specific database

Lists all containers from the specified Database

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM SysTables WITH (Database=''MyCosmos DB'')';

EXEC (@MyQuery) AT [LS_TO_COSMOS_DB_IN_GATEWAY];