Trace and Profiler in Visual Foxpro

Posted on 2003-10-21
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 25 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

733 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