Hello David Chatel,
To retrieve data from ADX through the linked server, you can use the OPENQUERY
function in T-SQL against the ADX cluster.
- Set up the linked server using an ODBC connection.
- Query ADX data using
OpenQuery
SELECT * FROM OpenQuery(LINKEDSERVER, 'SELECT * from MyFunction(10)')
SQL Server has a limitation where it can't use remote tabular functions from linked servers directly in its own queries. To overcome this limitation, use the OpenQuery
function to run a query on the linked server. You can then use the outer T-SQL query to combine the data from the SQL server with the data returned from the Azure Data Explorer stored function.
Reference document:
https://learn.microsoft.com/en-us/azure/data-explorer/linked-server
If this answers your question, please consider accepting the answer by hitting the Accept answer and up-vote as it helps the community look for answers to similar questions.