I am working with a third-party application that uses ODBC to connect and modify the database. In certain failure modes, the end results are not what I expect. To understand this better, I would like to somehow check all the applications sent to the database. Is there a way to do this with ODBC?
I know that with JDBC I could use http://www.p6spy.com/ to see all the instructions sent, for example, when debugging sleep mode. p6spy is a proxy driver that records the commands sent and forwarded to the real JDBC driver.
Another option might be a protocol sniffer that will capture posting statements. Although, I'm not sure if ODBC includes a standard wired protocol or only specifies an API.
Does anyone know of existing tools that would allow me to do this? Alternatively, is there any other approach I could take?
source share