简体   繁体   English

如何在MS Access 2007中获取SQL查询

[英]how to get sql query in MS Access 2007

I am using MS Access 2007 database for an application. 我正在使用MS Access 2007数据库的应用程序。 I want to fetch the query to be executed at run time. 我想获取要在运行时执行的查询。

Is there any tool for MS Access 2007 like SQL Profile? 是否有像MS Profile这样的MS Access 2007工具?

I think you can do it. 我想你可以做到。 but not as like sql profiles. 但不像sql配置文件那样。 Have you tried turning on the ODBC trace function? 您是否尝试过启用ODBC跟踪功能? Use the ODBC Data Sources control panel applet. 使用ODBC数据源控制面板小程序。 Switch to the 'Trace' tab and review the options available. 切换到“跟踪”选项卡并查看可用选项。

Here i have found similar with your question. 在这里,我发现与您的问题相似。

Is it possible to monitor and log actual queries made against an Access MDB? 是否可以监视和记录针对Access MDB进行的实际查询?

Use Microsoft Jet's ShowPlan to write more efficient queries 使用Microsoft Jet的ShowPlan编写更有效的查询

我无法找到任何这样的工具(几天前我做了很多谷歌,当我有类似的要求),最后在sql server中导入ms-access数据库并更改连接,做了我的工作,然后改变了连接回ms-access .. :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM