Query Log in Access

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • maryjones11289@hotmail.com

    #1

    Query Log in Access

    Hi,

    I have an app (lost the source code) that performs many different
    queries in order to achieve the results I'm looking for. Re-developing
    the app isn't really a big issue...but what would be is trying to
    figure out how I did the original database queries (SQL Syntax I used)

    I was wondering if there was a way in Access to log all queries made to
    a database...or alternatively, was there any app that you guys new of
    that can monitor an access database and somehow view any queries made
    to it?

    By queries, I mean Inserts, Updates, Deletes AND Read
    queries...espec ially READ queries.

    Thanks for your time.

    Mary.

  • Larry  Linson

    #2
    Re: Query Log in Access

    <maryjones11289 @hotmail.com> wrote
    [color=blue]
    > I have an app (lost the source code) that
    > performs many different queries in order
    > to achieve the results I'm looking for. Re-
    > developing the app isn't really a big issue...
    > but what would be is trying to figure out
    > how I did the original database queries
    > (SQL Syntax I used)[/color]

    In what form is the Access application you have?

    You can see the Queries in either an .MDB or an .MDE (the "compiled" MDE
    simply tokenizes VBA code and locks design view on Access objects which can
    have a code module). It may be that simply holding down the Shift key as you
    start the application, or once it is executing, pressing F11 to see the
    database window will let you view your Queries, in the Query Builder which
    has an option to display the SQL.

    If you cannot, then it is possibly a problem that you have Access security
    applied and do not have the appropriate permissions. There are so many
    third-party security cracks for Access databases that breaking security
    should not be insurmountable. Although it may cost you, most of the
    "password recovery" packages I have heard about cost US$150 or less.

    Unlike C and other "programmin g languages", Access does not have a way to
    compile to executable. And since the only "compilatio n" (usually called
    "preparatio n") of Queries would be by the database engine, those are not
    affected by "compiling" the Access application to MDE.

    Larry Linson
    Microsoft Access MVP



    Comment

    • maryjones11289@hotmail.com

      #3
      Re: Query Log in Access

      Hi Larry,

      Thanks for the reply. I'm sorry, I guess I wasn't too specific in
      outlining my problem. Let me clarify...

      The App is a compiled VB6 program that makes use of an Access 2000
      Database. All the queries are generated on-the-fly by this program...ie
      they are not stored in the database.

      I have the .exe file and the .mdb file. What I don't have is the source
      code I used to generate the .exe (result of HD crash).

      So, I have the app that works fine, but now I need to make
      modifications to it.
      When I wrote the app I remember that I used some pretty wicked SQL
      statements to get the results I needed. It took a long time to get them
      working right. I'm not looking forward to going through that drama
      again.

      This is why I was wanting to know if I could set the database to log
      any queries (especially "read"), or if there was an app I could run
      that could moniitor a specified DB, then I could run my app and
      hey-presto, I'd have my SQL queries back.

      I hope this helps.

      Regards,

      Mary.




      Larry Linson wrote:[color=blue]
      > <maryjones11289 @hotmail.com> wrote
      >[color=green]
      > > I have an app (lost the source code) that
      > > performs many different queries in order
      > > to achieve the results I'm looking for. Re-
      > > developing the app isn't really a big issue...
      > > but what would be is trying to figure out
      > > how I did the original database queries
      > > (SQL Syntax I used)[/color]
      >
      > In what form is the Access application you have?
      >
      > You can see the Queries in either an .MDB or an .MDE (the "compiled"[/color]
      MDE[color=blue]
      > simply tokenizes VBA code and locks design view on Access objects[/color]
      which can[color=blue]
      > have a code module). It may be that simply holding down the Shift key[/color]
      as you[color=blue]
      > start the application, or once it is executing, pressing F11 to see[/color]
      the[color=blue]
      > database window will let you view your Queries, in the Query Builder[/color]
      which[color=blue]
      > has an option to display the SQL.
      >
      > If you cannot, then it is possibly a problem that you have Access[/color]
      security[color=blue]
      > applied and do not have the appropriate permissions. There are so[/color]
      many[color=blue]
      > third-party security cracks for Access databases that breaking[/color]
      security[color=blue]
      > should not be insurmountable. Although it may cost you, most of the
      > "password recovery" packages I have heard about cost US$150 or less.
      >
      > Unlike C and other "programmin g languages", Access does not have a[/color]
      way to[color=blue]
      > compile to executable. And since the only "compilatio n" (usually[/color]
      called[color=blue]
      > "preparatio n") of Queries would be by the database engine, those are[/color]
      not[color=blue]
      > affected by "compiling" the Access application to MDE.
      >
      > Larry Linson
      > Microsoft Access MVP[/color]

      Comment

      • Larry  Linson

        #4
        Re: Query Log in Access

        I worked on some Access client to server DB projects with a DBA who had a
        package that recorded the SQL that was transmitted from the ODBC drivers to
        the server DB. I don't know that I ever knew the name of the package he
        used.

        I am not aware of a similar product for catching and recording what is sent
        between VB and the Jet database engine -- but that does not mean there isn't
        one.

        Larry Linson
        Microsoft Access MVP


        <maryjones11289 @hotmail.com> wrote in message
        news:1111116464 .052877.179860@ z14g2000cwz.goo glegroups.com.. .[color=blue]
        > Hi Larry,
        >
        > Thanks for the reply. I'm sorry, I guess I wasn't too specific in
        > outlining my problem. Let me clarify...
        >
        > The App is a compiled VB6 program that makes use of an Access 2000
        > Database. All the queries are generated on-the-fly by this program...ie
        > they are not stored in the database.
        >
        > I have the .exe file and the .mdb file. What I don't have is the source
        > code I used to generate the .exe (result of HD crash).
        >
        > So, I have the app that works fine, but now I need to make
        > modifications to it.
        > When I wrote the app I remember that I used some pretty wicked SQL
        > statements to get the results I needed. It took a long time to get them
        > working right. I'm not looking forward to going through that drama
        > again.
        >
        > This is why I was wanting to know if I could set the database to log
        > any queries (especially "read"), or if there was an app I could run
        > that could moniitor a specified DB, then I could run my app and
        > hey-presto, I'd have my SQL queries back.
        >
        > I hope this helps.
        >
        > Regards,
        >
        > Mary.
        >
        >
        >
        >
        > Larry Linson wrote:[color=green]
        > > <maryjones11289 @hotmail.com> wrote
        > >[color=darkred]
        > > > I have an app (lost the source code) that
        > > > performs many different queries in order
        > > > to achieve the results I'm looking for. Re-
        > > > developing the app isn't really a big issue...
        > > > but what would be is trying to figure out
        > > > how I did the original database queries
        > > > (SQL Syntax I used)[/color]
        > >
        > > In what form is the Access application you have?
        > >
        > > You can see the Queries in either an .MDB or an .MDE (the "compiled"[/color]
        > MDE[color=green]
        > > simply tokenizes VBA code and locks design view on Access objects[/color]
        > which can[color=green]
        > > have a code module). It may be that simply holding down the Shift key[/color]
        > as you[color=green]
        > > start the application, or once it is executing, pressing F11 to see[/color]
        > the[color=green]
        > > database window will let you view your Queries, in the Query Builder[/color]
        > which[color=green]
        > > has an option to display the SQL.
        > >
        > > If you cannot, then it is possibly a problem that you have Access[/color]
        > security[color=green]
        > > applied and do not have the appropriate permissions. There are so[/color]
        > many[color=green]
        > > third-party security cracks for Access databases that breaking[/color]
        > security[color=green]
        > > should not be insurmountable. Although it may cost you, most of the
        > > "password recovery" packages I have heard about cost US$150 or less.
        > >
        > > Unlike C and other "programmin g languages", Access does not have a[/color]
        > way to[color=green]
        > > compile to executable. And since the only "compilatio n" (usually[/color]
        > called[color=green]
        > > "preparatio n") of Queries would be by the database engine, those are[/color]
        > not[color=green]
        > > affected by "compiling" the Access application to MDE.
        > >
        > > Larry Linson
        > > Microsoft Access MVP[/color]
        >[/color]


        Comment

        • John Mishefske

          #5
          Re: Query Log in Access

          Larry Linson wrote:[color=blue]
          > I worked on some Access client to server DB projects with a DBA who had a
          > package that recorded the SQL that was transmitted from the ODBC drivers to
          > the server DB. I don't know that I ever knew the name of the package he
          > used.
          >
          > I am not aware of a similar product for catching and recording what is sent
          > between VB and the Jet database engine -- but that does not mean there isn't
          > one.
          >
          > Larry Linson
          > Microsoft Access MVP[/color]

          I believe you can turn on the Trace facility in ODBC (most likely
          through the Control Panel applet, Administrative tools, Data Sources,
          Tracing tab in XP) and that log may have the SQL statement in it.

          Beware that the log grows very big very fast on an active db.
          --
          '---------------
          'John Mishefske
          '---------------

          Comment

          • maryjones11289@hotmail.com

            #6
            Re: Query Log in Access

            Thanks Larry and John...

            The app does not use an ODBC connection to access the database, so I
            can't use the tracing facility.

            However, I had a thought that if it did use an odbc connection, then
            perhaps this tracing facility is just what I need.

            So, with that in mind, I tried placing the tables in another mdb
            database and linking the tables into the db the app uses via an odbc
            connection. I soon discovered the linking facility in Access does not
            let you link to another mdb database through odbc (which I thought was
            odd).

            Not to be put off, I moved the tables to an informix database and
            linked the mdb database the app uses to point to these tables. This
            worked ok and the app runs fine, but when I turn on the tracing for
            odbc connections, nothing gets populated in the log file.

            I can't figure out why it's empty. Either I've done something wrong
            (most likely) or perhaps it's because I'm not accessing the database
            directly through odbc so nothing is written to the log.

            I guess I'm back to square one and have to try re-building the queries
            from scratch...groan ...

            Thanks for your feed back though, I appreciate it.

            Mary.

            Comment

            • PC Datasheet

              #7
              Re: Query Log in Access

              Mary,

              I specialize in adding more functionality to existing applications,
              modifying existing applications and fixing problems in existing
              applications. I am very good at this and could rebuild your queries from
              scratch for you. If you are interested in having me help you, contact me at
              my email address below.

              --
              PC Datasheet
              Your Resource For Help With Access, Excel And Word Applications
              resource@pcdata sheet.com




              <maryjones11289 @hotmail.com> wrote in message
              news:1111111159 .630806.17910@z 14g2000cwz.goog legroups.com...[color=blue]
              > Hi,
              >
              > I have an app (lost the source code) that performs many different
              > queries in order to achieve the results I'm looking for. Re-developing
              > the app isn't really a big issue...but what would be is trying to
              > figure out how I did the original database queries (SQL Syntax I used)
              >
              > I was wondering if there was a way in Access to log all queries made to
              > a database...or alternatively, was there any app that you guys new of
              > that can monitor an access database and somehow view any queries made
              > to it?
              >
              > By queries, I mean Inserts, Updates, Deletes AND Read
              > queries...espec ially READ queries.
              >
              > Thanks for your time.
              >
              > Mary.
              >[/color]


              Comment

              • Arno R

                #8
                Re: Query Log in Access


                "PC Datasheet" <nospam@nospam. spam> schreef in bericht
                news:HOJ%d.1254 $S46.1034@newsr ead3.news.atl.e arthlink.net...[color=blue]
                > Mary,
                >
                > I specialize in adding more functionality to existing applications,
                > modifying existing applications and fixing problems in existing
                > applications. I am very good at this and could rebuild your queries from
                > scratch for you. If you are interested in having me help you, contact me at
                > my email address below.[/color]

                You seem to just specialize in advertising and job-hunting in the groups here.
                Check out:


                Arno R

                Comment

                • PC Datasheet

                  #9
                  Re: Query Log in Access

                  You're a jerk!!

                  I don't see you making a helpful suggestion to Mary. In fact, I don't recall
                  ever seeing a helpful suggestion to any poster from you. Why don't you go
                  fill up a large stein of your lousy lager, go out by the Danube and see how
                  fast you can gulp it down! Then go up to Berlin and see how long it takes
                  you to rebuild the wall one stone at a time.


                  "Arno R" <arracomn_o_s_p _a_m@tiscali.nl > wrote in message
                  news:423fe318$0 $44090$5fc3050@ dreader2.news.t iscali.nl...[color=blue]
                  >
                  > "PC Datasheet" <nospam@nospam. spam> schreef in bericht
                  > news:HOJ%d.1254 $S46.1034@newsr ead3.news.atl.e arthlink.net...[color=green]
                  > > Mary,
                  > >
                  > > I specialize in adding more functionality to existing applications,
                  > > modifying existing applications and fixing problems in existing
                  > > applications. I am very good at this and could rebuild your queries from
                  > > scratch for you. If you are interested in having me help you, contact me[/color][/color]
                  at[color=blue][color=green]
                  > > my email address below.[/color]
                  >
                  > You seem to just specialize in advertising and job-hunting in the groups[/color]
                  here.[color=blue]
                  > Check out:
                  >[/color]

                  uthors=PC%20Dat asheet%20&as_sc oring=d&lr=&hl= nl[color=blue]
                  >
                  > Arno R
                  >[/color]


                  Comment

                  • Arno R

                    #10
                    Re: Query Log in Access


                    "PC Datasheet" <nospam@nospam. spam> schreef in bericht
                    news:zaU%d.1653 $S46.1622@newsr ead3.news.atl.e arthlink.net...
                    [color=blue]
                    > You're a jerk!!
                    > <other rather stupid and offensive lines to German people ? here >[/color]

                    Getting offensive again Steve?

                    -- You abuse this group and other groups for advertising and job-hunting over and over again:


                    -- You hide your identity while asking questions:


                    As this 'Heather' you asked many questions. Even more as 'Kristine':


                    You are pathetic !
                    Need more examples ?
                    Arno R

                    Comment

                    • Tim Marshall

                      #11
                      Re: Query Log in Access

                      PC Datasheet wrote:[color=blue]
                      > You're a jerk!!
                      >
                      > I don't see you making a helpful suggestion to Mary. In fact, I don't recall
                      > ever seeing a helpful suggestion to any poster from you.[/color]

                      And you are, demonstrably, by what I've snipped from your post, a bigot.

                      Based on your previous disgraceful behaviour, I'm guessing "MAry JOnes"
                      is another one of your fradulent personae.
                      --
                      Tim http://www.ucs.mun.ca/~tmarshal/
                      ^o<
                      /#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
                      /^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me

                      Comment

                      • maryjones11289@hotmail.com

                        #12
                        Re: Query Log in Access

                        hmmm...I didn't expect my post for assistance to generate such a
                        commotion.

                        For the record, I can assure you that I am not an alias of "PC
                        Datasheet" nor have I ever heard of this person until now. My post was
                        an honest request for assistance from the people that frequent this
                        newsgroup.

                        Mary.

                        Comment

                        Working...