Is it possible to monitor and log actual queries made against an Access MDB?

前端 未结 5 693
甜味超标
甜味超标 2020-12-05 10:57

Is it possible to monitor what is happening to an Access MDB (ie. what SQL queries are being executed against it), in the same way as you would use SQL Profiler for the SQL

5条回答
  •  鱼传尺愫
    2020-12-05 11:36

    Keep in mind that the file sitting on your hard drive is simply a windows file. So, there is a big difference between a server based system and that of a simple text file, or Power Point file, or in this case a mdb file just sitting on the drive.

    However you can get the jet engine to display its query optimizeing via showplan.

    How to do this is explained here:

    http://www.databasejournal.com/features/msaccess/article.php/3658041/Queries-On-Steroids--Part-IV.htm

    The above article also shows how to access the jet disk read statistics, which I also find extremely useful for optimizing things.

    Just remember to turn off that data engine logging system when you’re not using it as it creates huge log files…

提交回复
热议问题