Trace and Profiler in Visual Foxpro


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,
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

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,

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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.