• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 999
  • Last Modified:

Trace and Profiler in Visual Foxpro

Hi,

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,
Kiran.
0
lkiran
Asked:
lkiran
  • 2
1 Solution
 
RodcCommented:
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.

Thanks!
-Rod
0
 
lkiranAuthor Commented:
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,
Kiran.
0
 
RodcCommented:
Kiran,

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.
-Rod



0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now