Trace and Profiler in Visual Foxpro

Posted on 2003-10-21
Medium Priority
Last Modified: 2006-11-17

Is there any tool available for Visual Foxpro Trace.

Ex. Sql server 7.0/2000 provide profiler to find out which are the SCRIPTS running against the database like that is there any tool from microsoft or any other 3rd party tool which i can use for the same purpose.

If somebody can immediately reply this, it will be gratefull............

Thanks and Regards,
Question by:lkiran
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 9600051
Hi Kiran,

Assuming you are using VFP IDE and are running/can run the source code:

There are tools built into the Development version of Visual Foxpro.  If you are running the source code (??), you can instruct the Debugger to do both Event Tracking and/or Coverage Logging.  If you want to see what code is running when, from the Debugger, select Tools->Coverage Logging and follow the prompts.  When you then run your source code, it will be logged.  You can optionally use the VFP Coverage Profiler to more easily dicipher the results.

If this doesn't apply, maybe you can expand on what you are wanting to do.


Author Comment

ID: 9605099
Hi Rod,

Thanks for the quick Update, but I am looking at the database level tracing ....  I.e., I wanted to trace only those  events that happens at database side.  Ex. Select,UPdate,Insert,Deleting,Insert into etc....

Whatever you have suggested, I works for the applications side tracing, but I am not getting those events which are happening at the database side....  Is there any way to get only those events.....

NOTE : I am using VFG 7.0.

Thanks and Regards,

Accepted Solution

Rodc earned 100 total points
ID: 9606661

Starting with VFP7.0, you do have access to Database Events.  See the Help file for "Using DBC Events" & "Adding code to a DBC Event".  These differ from a SQL Server model in that in VFP, Database Events pertain to the DBC-Level functions which does not include Table-Level functions.  

If you want/need Table-Level operations - as you suggest above - "Select/Update/Insert/Delete", etc, I'm thinking you'd add a function call to each tables Insert/Update/Delete Triggers (Modify Table - Table tab).  The code can reference an external program or a function in the Database Stored Procedure.  It make take a little code to do that but you have full control over what you log/trace, etc.

Hope that helps.


Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question