Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Database Logging

Database Logging

Scheduled Pinned Locked Moved Database
databasetoolsquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aaron Schaefer
    wrote on last edited by
    #1

    Hi All, I have a project where I am trying to become familiar with a database app. I'd like to log the queries made against the database (an access database accessed through ADO). What's a good utility for logging database activity?

    T 1 Reply Last reply
    0
    • A Aaron Schaefer

      Hi All, I have a project where I am trying to become familiar with a database app. I'd like to log the queries made against the database (an access database accessed through ADO). What's a good utility for logging database activity?

      T Offline
      T Offline
      tojamismis
      wrote on last edited by
      #2

      If I were tackling this I would try this. With Access you can use VBA in a Trigger. (I'm not an access guru, but I know it's possible.) Create the trigger to occur on selection Create a FileSystemObject (Scripting.FileSystemObject) in the trigger. Open a text file using the FileSystemObject.TextStream Write the contents of the query to the the text file. I'm not sure if you can pull the actual query string so you'll need to check. I'm also not sure if this will work, but it's a good place to start. Torin Blair
      'In the immortal words of Socrates - "I drank what?".'

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups