Solved

Trace and Profiler in Visual Foxpro

Posted on 2003-10-21
5
818 Views
Last Modified: 2006-11-17
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
Comment
Question by:lkiran
  • 2
5 Comments
 

Expert Comment

by:Rodc
Comment Utility
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
 
LVL 1

Author Comment

by:lkiran
Comment Utility
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
 

Accepted Solution

by:
Rodc earned 25 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
xBase++ 6 68
oracle query help 18 74
Managing SQL log files, SQL Server 2014 6 54
ORA-12560: TNS:protocol adapter error 8 41
Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now