473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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...especially READ queries.

Thanks for your time.

Mary.

Nov 13 '05 #1
11 8070
<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 "programming languages", Access does not have a way to
compile to executable. And since the only "compilation" (usually called
"preparation") 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 "programming languages", Access does not have a way to compile to executable. And since the only "compilation" (usually called "preparation") 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.googlegr oups.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 "programming languages", Access does not have a

way to
compile to executable. And since the only "compilation" (usually

called
"preparation") 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******@pcdatasheet.com
www.pcdatasheet.com

<ma************@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.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...especially READ queries.

Thanks for your time.

Mary.

Nov 13 '05 #7

"PC Datasheet" <no****@nospam.spam> schreef in bericht
news:HO*****************@newsread3.news.atl.earthl ink.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.tiscal i.nl...

"PC Datasheet" <no****@nospam.spam> schreef in bericht
news:HO*****************@newsread3.news.atl.earthl ink.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%20Datasheet%20&as_scoring=d&lr=&hl=nl
Arno R

Nov 13 '05 #9

"PC Datasheet" <no****@nospam.spam> schreef in bericht
news:za*****************@newsread3.news.atl.earthl ink.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
PC Datasheet wrote:
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.


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

Nov 13 '05 #12

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

Similar topics

3
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...
8
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...
12
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
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 ...
22
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...
11
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....
3
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...
6
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...
2
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...
9
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.