“operation is not supported for this type of object” ODBC error from running SQL pass through query

有些话、适合烂在心里 提交于 2019-12-11 12:49:52

问题


I'm putting this specific item in here because I ended up somewhere completely different on StackOverflow, and don't see this specific answer anywhere.

I was getting an "ODBC error" back from running an MS Access report using an SQL passthrough query, and dao.Errors contained "Operation is not supported for this type of object"


回答1:


This error is also returned from an SQL pass through query when the query throws an error because a sub query return multiple values

In my case, the stored procedure was performing some updates on the table variable and using a subquery for totalling

e.g. UPDATE T SET X = (SELECT Y FROM Z WHERE Z.A = T.A) and A happens to appear twice in Z



来源:https://stackoverflow.com/questions/33880215/operation-is-not-supported-for-this-type-of-object-odbc-error-from-running-sql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!