Excel 如何在 MS Query 中使用临时表?

How to use temporary tables in MS Query in Excel?

如何在Excel的MS Query中使用临时表? 查询在预览中显示正常,但未正确插入到电子表格中。

找到了很好的答案:

Try adding "SET NOCOUNT ON" at the beginning of your query. The temp-table handling queries may return null-recordsets, the first of which is being processed by MS Query (MS Query can only handle the first returned resultset). By using "SET NOCOUNT ON", you tell SQL Server not to send these null-recordsets.

http://objectmix.com/ado-dao-rdo-rds/60438-re-ms-query-temp-tables.html