Stored Procedures

Stored procedures are available to complement the data available from the NoSQL Database. It may be necessary to update data available from a view using a stored procedure because the data does not provide for direct, table-like, two-way updates. In these situations, the retrieval of the data is done using the appropriate view or table, while the update is done by calling a stored procedure. Stored procedures take a list of parameters and return back a dataset that contains the collection of tuples that constitute the response.

Cosmos DB Adapter Stored Procedures

Name Description
AddDocument Insert entire JSON string to CosmosDB.
CreateSchema Creates a schema file for the collection.
GetOAuthAccessToken Gets the OAuth access token from CosmosDB.
GetOAuthAuthorizationURL Gets the CosmosDB authorization URL. Access the URL returned in the output in a Web browser. This requests the access token that can be used as part of the connection string to CosmosDB.
RefreshOAuthAccessToken Refreshes the OAuth access token used for authentication with CosmosDB.