【问题标题】:ODBC Logging of Requests请求的 ODBC 记录
【发布时间】:2011-12-03 07:25:39
【问题描述】:

本文http://msdn.microsoft.com/en-us/library/bb188204%28v=sql.90%29.aspx?ppud=4 描述了如何记录通过 ODBC 发送的 SQL 请求。

有人知道用于 Access 2010 的注册表项吗?我搜索了注册表,在 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\ODBC 中找到了 TraceSQLMode 的条目并将其打开。我从 Access 向远程 SQL Server 实例运行了一些查询,但随后尽我所能搜索,我找不到 sqlout.txt 文件。

我在注册表中搜索了另一个键,但找不到。

【问题讨论】:

  • 链接到文章的链接似乎消失了 - 很遗憾,这对我来说是一本圣经
  • 今天又查了一遍。引用的文章已恢复

标签: sql-server ms-access odbc


【解决方案1】:

怎么样:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Access Connectivity Engine\Engines\ODBC]

价值观:

"TraceODBCAPI"=dword:00000000
"DisableAsync"=dword:00000001

"TraceSQLMode"=dword:00000000

"QueryTimeout"=dword:0000003c
"LoginTimeout"=dword:00000014
"ConnectionTimeout"=dword:00000258
"TryJetAuth"=dword:00000000
"FatBlastRows"=dword:ffffffff
"FatBlastTimeout"=dword:00000003
"AsyncRetryInterval"=dword:000001f4
"AttachCaseSensitive"=dword:00000000
"FastRequery"=dword:00000000
"ODBCISAMAttach"=dword:00000000
"PreparedInsert"=dword:00000000
"PreparedUpdate"=dword:00000000
"SnapshotOnly"=dword:00000000
"AttachableObjects"="'TABLE','VIEW','SYSTEM TABLE','ALIAS','SYNONYM'"

【讨论】:

  • 谢谢 - 辛苦了。我花了一段时间才找到 sqlout.txt 它没有把它放在我打开的访问文件的目录中,而是放在我之前运行访问的地方。奇怪
  • @akc42 我在任何地方都找不到sqlout.txt。我尝试在我的硬盘上进行非索引搜索。我还查看了default database folder。男人!它在哪里?
  • @akc42 我想知道是不是because of this: Office Access 2007 uses a customized version of the Jet database engine, named the Office Access Connectivity Engine (ACE), which is not shared with other Windows applications. If you are using Office Access 2007, navigate to the following registry key. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Access Connectivity Engine\ODBC 我在我的注册表中找不到Access Connectivity Engine
猜你喜欢
  • 2016-09-11
  • 2018-02-08
  • 1970-01-01
  • 2015-12-30
  • 1970-01-01
  • 2011-08-29
  • 2014-05-13
  • 1970-01-01
相关资源
最近更新 更多