473,890 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

Nov 13 '05 #1
11 8116
<ma************ @hotmail.com> wrote
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)


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

Nov 13 '05 #2
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:
<ma************ @hotmail.com> wrote
> 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)
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


Nov 13 '05 #3
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
<ma************ @hotmail.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
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:
<ma************ @hotmail.com> wrote
> 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)


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

Nov 13 '05 #4
Larry Linson wrote:
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


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
'---------------
Nov 13 '05 #5
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.

Nov 13 '05 #6
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
re******@pcdata sheet.com
www.pcdatasheet.com

<ma************ @hotmail.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
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.

Nov 13 '05 #7

"PC Datasheet" <no****@nospam. spam> schreef in bericht
news:HO******** *********@newsr ead3.news.atl.e arthlink.net...
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.


You seem to just specialize in advertising and job-hunting in the groups here.
Check out:
http://www.google.com/groups?as_q=co...ng=d&lr=&hl=nl

Arno R

Nov 13 '05 #8
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" <ar************ ****@tiscali.nl > wrote in message
news:42******** **************@ dreader2.news.t iscali.nl...

"PC Datasheet" <no****@nospam. spam> schreef in bericht
news:HO******** *********@newsr ead3.news.atl.e arthlink.net...
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.
You seem to just specialize in advertising and job-hunting in the groups

here. Check out:
http://www.google.com/groups?as_q=co...dress%20&as_ua
uthors=PC%20Dat asheet%20&as_sc oring=d&lr=&hl= nl
Arno R

Nov 13 '05 #9

"PC Datasheet" <no****@nospam. spam> schreef in bericht
news:za******** *********@newsr ead3.news.atl.e arthlink.net...
You're a jerk!!
<other rather stupid and offensive lines to German people ? here >


Getting offensive again Steve?

-- You abuse this group and other groups for advertising and job-hunting over and over again:
http://www.google.com/groups?as_q=co...ng=d&lr=&hl=nl

-- You hide your identity while asking questions:
http://groups.google.com/groups?hl=n...eken%26meta%3D

As this 'Heather' you asked many questions. Even more as 'Kristine':
http://groups.google.com/groups?q=ks...sa=G&scoring=d

You are pathetic !
Need more examples ?
Arno R
Nov 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
23636
by: Robert | last post by:
I am having performance issues on a SQL query in Access. My query is accessing and joining several tables (one very large one). The tables are linked ODBC. The client submits the query to the server, separated by several states. It appears the query is retrieving gigs of data from the table and processing the joins on the client. Is there away to perform more of the work on the server there by minimizing the amount of extraneous table...
8
6468
by: Adam Louis | last post by:
I would like help resolving this problem. I'm a novice who's been hired to query a hospital database and extract useful information, available to me only in a dynamically generated, downloadable .mdb. The query below query runs correctly and without error, but any attempt to save it causes Access to crash without a message, leaving the .ldb file. Opening the DB reveals it saved a blank "query1". I've upgraded to Jet SP 8, and I'm running...
12
2329
by: Joe Stanton | last post by:
Hello Group I have a query that works in Oracle and SQL Server, but fails in Microsoft Access. The query is: SELECT data fromTABLE1 WHERE data>='A&' AND data<'A''' Here is my sample data:
6
4859
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID SalesManName AT Alan Time
22
31227
by: Stan | last post by:
I am working with Access 2003 on a computer running XP. I am new at using Access. I have a Db with a date field stored as mm/dd/yyyy. I need a Query that will prompt for the month, ie. 6 for June, and will return all records in that month.
11
16344
by: funky | last post by:
hello, I've got a big problem ad i'm not able to resolve it. We have a server running oracle 10g version 10.1.0. We usually use access as front end and connect database tables for data extraction. We have been using oracle client 10.1.0.2 with it's odbc for a while without problem. The problem arose when we decided to reconnect all the tables and save password. Some query became suddenly very slow. Then I've discovered that the tables...
3
7779
by: mnjkahn via AccessMonster.com | last post by:
I'm running Access 2003, modifying a query that has over 45 fields. When I right click on the field name in Query Design View, and then click Build, Access crashes before the Build window appears. It doesn't happen every time, and using the Zoom window works fine. It appears that it only happens when I want to modify an existing expression. This continues to happen even after the database is repaired and reopened. Anyone have any...
6
4416
by: jsacrey | last post by:
Hey everybody, got a secnario for ya that I need a bit of help with. Access 97 using linked tables from an SQL Server 2000 machine. I've created a simple query using two tables joined by one field between them. The join field in both tables are indexed and I'm selecting 1 field from each table to lookup. The Access query is taking more than 60 second to retrieve 1 record and if I execute the same query within the Query Analyzer, it...
2
9853
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes to open in datasheet view. As an experiment, I deleted all rows in all tables; after that, the query took only seconds to open in both design view and datasheet view. From these facts, I conclude that Access is evaluating the query when I go to...
9
3643
by: Sinner | last post by:
Hi, I have a field name 'USER' in tableMAIN. How do I replace the user names with corresponding user names. I can do that in xl using vlookup but now I'm trying to find a way to do that in access. For a user mismatch, it should give NA Thx.
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9819
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10918
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8015
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7169
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4674
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3275
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.