I wish to implement SQL Server Profiler in a C#/VB.NET application. Is there a good example of how to do this?
I have searched on Google, but I didn’t find a good working example. I don’t have SQL Server Profiler on my system and also don’t have SQL Server (it is on a different system).
How do I create a profiler for my self?
Have a look at the blog post Programmatically receiving profiler events (in real time) from SQL Server 2005.