I have a Cosmos DB and SQL Db in Azure.
Can I create a linked server to Cosmos Db in SQL Db, and then write SQL queries to documents in SP present in SQL Db. Is this technically possible ?
The Azure SQL Server document said that Azure SQL database doesn't support create linked servers:
But SQL Server does. I searched some demos and I think may be useful for you.
Here are the two samples about Azure Cosmos DB linked server:
Hope this can helps you.
Can I create a linked server to Cosmos Db in SQL Db, and then write SQL queries to documents in SP present in SQL Db. Is this technically possible ?
You could use copy activity in Azure Data Factory to achieve your requirements.
Please configure Cosmos db as source linked service and SQL db as sink linked service.
In addition,you could configure stored procedure in from SQL db sink.