Share via

Using OPENQUERY from SQLServier in Excel Microsoft Query

Lorenda Christensen 1 Reputation point
2021-12-23T17:00:50.673+00:00

I have a SQL query to a linked server that works fine in SQLServerManagementStudio, and I'd like to add this query to a refreshable Excel file. Usually, I am able to (in Excel) go to Data>GetExternalData>FromOtherSources>From Microsoft Query, and then copy/paste my SQL statement into the SQL free form field.

However, this does not seem to work for an OPENQUERY statement to a linked server. Are there any workarounds to this?

Microsoft 365 and Office | Development | Other
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.