Using SQL Server specific code in Access linked to SQL Server database

穿精又带淫゛_ 提交于 2019-12-24 10:02:48

问题


I have an access file that is linked (through an ODBC connection) to a SQL Server 2008 database. I am trying to write some reports against this database. However, Access chokes when I write the select query of the report with SQL syntax specific to SQL Server that doesn't exist in access. Shouldn't this work, since it's the SQL Server engine running the queries and just sending the data back to Access to display? Is there any way to get this to work?

Need this to work on any combination of Access 2007 and 2010, and SQL Server 2005 and 2008.

Edit
Note: I cannot create a SQL Server stored procedure or function, or otherwise modify the original (SQL Server) schema in any way.


回答1:


Found the answer: I need to use a "pass-through query".



来源:https://stackoverflow.com/questions/4933487/using-sql-server-specific-code-in-access-linked-to-sql-server-database

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