Hi @Anonymous ,
Is your SQL on prem or in Azure? Looking at the screenshot, it looks to be on premise which means you won't be able to use SQL query via the data gateway.
You can look into calling a stored proc that is on the server you have created the connection for and see if you can query your linked server that way? I know the stored proc executed via SSMS will execute the query successfully against the linked server.

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn