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
| Optional Parameters | |
|---|---|
| Database Name (keep blank to use default) Case-Sensitive | |
Read/write to SysTables table using API Destination
| Optional Parameters | |
|---|---|
| Database Name (keep blank to use default) Case-Sensitive | |
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];