Accessing Cosmos SQL API DB using .NET Sdk of Table API

suvra jyoti 151 Reputation points

We have a legacy application whose database is Azure Cosmos DB SQL API database. The application code is accessing the same using the .net SDKs for Table APIs (Microsoft.Azure.Cosmos.Table/Azure.Data.Tables). Initially there was Azure Table Storage that was being used and then later migration happened to Azure cosmos Table API. Then due to some security issues it had to be converted to Azure Cosmos DB SQL API database but the application code was not changed to use Microsoft.Azure.Cosmos(.net sdk for SQL API). Are there any concerns with this as there is currently no issues. ?

connection string : DefaultEndpointsProtocol=https;AccountName={ACCOUNT_NAME};AccountKey={ACCOUNT_KEY};TableEndpoint=https://{ACCOUNT_NAME};

Below are some of the links that suggest that it is recommended to use the same API in client code as in the backend:

Also is there any performance gain that is going to happen if we use the Microsoft.Azure.Cosmos sdk of SQL APIs in application code. Is there some documentation around the same? It is an important consideration since there a quite an amount of code rewrite that will need to be taken up.


Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,439 questions
{count} votes