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
Read and write Azure Cosmos DB data effortlessly. Query, integrate, and manage databases, containers, documents, and users — almost no coding required.
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
Read and write Azure Cosmos DB data effortlessly. Query, integrate, and manage databases, containers, documents, and users — almost no coding required.
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 containers (tables)

<p>Returns all containers (tables/collections) in the default database from the connection. Use to discover container names for <code>SELECT</code> or <code>INSERT</code>. For a different database, use the next example with <code>WITH (Database='...')</code>.</p>

SELECT * FROM SysTables

List containers for a database

<p>Returns all containers in a specific database by passing the database name in the <code>WITH</code> clause. Use when the connection default database is not the one you need.</p>

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 containers (tables)

<p>Returns all containers (tables/collections) in the default database from the connection. Use to discover container names for <code>SELECT</code> or <code>INSERT</code>. For a different database, use the next example with <code>WITH (Database='...')</code>.</p>

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

EXEC (@MyQuery) AT [LS_TO_COSMOS_DB_IN_GATEWAY];

List containers for a database

<p>Returns all containers in a specific database by passing the database name in the <code>WITH</code> clause. Use when the connection default database is not the one you need.</p>

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

EXEC (@MyQuery) AT [LS_TO_COSMOS_DB_IN_GATEWAY];