Pervasive
Sign in | Join | Help
in

How to see SQL that hits the database?

Last post 07-03-2008 5:10 AM by Timo Juntunen. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-03-2008 6:32 AM

    How to see SQL that hits the database?

    Hi, It seems that in older version of PSQL there has been a possibity to see all SQL queries getting into the database. Problem is that I have tens of clients accessing the database and now I would like to see what kind of queries they are using. We have having some kind of performance issues and I would like to see from query analyzer that for example are indexes properly used etc. I have tried to use registry settings told somewhere else but I just can't get the QPF file. And I'm using PSQL 9.1 at the moment... Thanks in advance for any help on this! :) Timo
  • 06-03-2008 7:35 AM In reply to

    Re: How to see SQL that hits the database?

     The registry settings for the Query Plan Viewer are the same in PSQL 2000, v8, v9, and v10.  One thing to note is that in v9 and later, the PCC does not use ODBC.  It uses JDBC.  Query Plan Viewer (and it's registry settings) uses an Engine Interface DSN. 

    Mirtheil
    I do not answer question via email. Please post questions in the forum.
  • 07-03-2008 5:10 AM In reply to

    Re: How to see SQL that hits the database?

    I think that our code is using ODBC in a way that this Pervasive can't see it, probably using file DSN?. I installed Wireshark (previously Ethereal) and I used that to trace all SQL calls coming into the port TCP/1583 and having text SELECT in them. It was actually quite easy to use so at least I can recommend that.
Page 1 of 1 (3 items)
© 2008 Pervasive Software Inc. All Rights Reserved.