跟踪从 MS Access 到 MySQL 的 SQL 调用

发布于 2024-08-12 06:35:05 字数 426 浏览 1 评论 0原文

我试图“查看”通过 ODBC 从 MS Access 2003 发送到 MySQL 的 SQL 语句。

我尝试过 ODBC 跟踪,但速度非常慢,会生成非常大的日志文件,很难阅读。

例如,插入看起来像这样:

"INSERT INTO  `tracking`  (`contract_id`,`bp_id`,`csi_1`,`csi_2a`,`csi_2b`,`csi_code`,`item_number`,`csi_code_display`,`csi_name`) 
VALUES (?,?,?,?,?,?,?,?,?)\ 0"

它不显示值,我认为它们被单独编码为 SQLBindParameters,但我也无法弄清楚其中的值。

是否有替代/更好的方法可以用来简单地查看完整的 SQL 语句?

MTIA

I'm trying to 'see' the SQL statements that are sent from MS Access 2003 to MySQL via ODBC.

I've tried ODBC Tracing, but it's painfully slow, producing very large log files which are very difficult to read.

For example, and insert looked like this:

"INSERT INTO  `tracking`  (`contract_id`,`bp_id`,`csi_1`,`csi_2a`,`csi_2b`,`csi_code`,`item_number`,`csi_code_display`,`csi_name`) 
VALUES (?,?,?,?,?,?,?,?,?)\ 0"

It doesn't show the values, I think they are coded separately as SQLBindParameters, but I can't make out the values in those either.

Is there an alternate/better method that I can use to simply see the full SQL statements?

MTIA

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

安稳善良 2024-08-19 06:35:05

MySQL 代理 应该做你想做的事。

MySQL Proxy should do what you're after.

等往事风中吹 2024-08-19 06:35:05

出现了,我刚刚在 Google 上搜索了“sql profiler for mysql”并提出了这个:

我不知道为什么这个问题今天出现在“新问题”列表中,但它确实 mysql.com/tech-resources/articles/using-new-query-profiler.html" rel="nofollow">http://dev.mysql.com/tech-resources/articles/using-new-query-profiler。 html

我不知道它是否更好,或者它是否适用于原始问题所使用的 MySQL 版本,但我认为它可能对其他提出该问题的人有用。

I don't know why this question popped up today in the "new questions" list, but it did, and I just Googled "sql profiler for mysql" and came up with this:

http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html

I don't know if it is better, or if it works with the version of MySQL used by the original question, but I thought it might be useful to others who came to the question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文