Cosmos DB Connector
Documentation
Version: 2
Documentation

Table SysTables


Parameters

Parameter Label Required Options Description Help
There are no parameters

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

Cosmos DB
SysTables
SSIS API Source - Read from table or endpoint

Read/write to SysTables table using API Destination

Cosmos DB
SysTables
Select
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 [LINKED_SERVER_TO_COSMOS_DB_IN_DATA_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 [LINKED_SERVER_TO_COSMOS_DB_IN_DATA_GATEWAY];