For Programmers: Free Programming Magazines  


Home > Archive > SQL Server Programming > May 2005 > Any help on application that works like a profiler









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Any help on application that works like a profiler
Pushkar

2005-05-31, 4:04 pm

Hi
I like to write an application that works kind of like Profiler.
I want to get some sort of event notification that something has happened on
the database server to let me know I should check for data and then log into
some table.

I tried through system stored procedure, but they don't let me directly
trace into the table, for that I have trace into file then from there to a
table.

I want to write something like profiler type application, that should be
continously listening to server events.
Are there any COM objects available for that or some other where through
which I can do this.

Thanks in Advance

Pushkar


JT

2005-05-31, 9:00 pm

In SQL Server profiler, you can filter events based on application name or
user, and output the event trace to a table or text file. Once this is in
place, your application can simply query for specific event conditions. Just
in case, if your intention is to implement a complex data constraint, then
use a trigger. Also, if you are wanting to block specific types of user
access to tables or stored procedures, then implement this using appropriate
logins and object level permissions.

"Pushkar" <tiwaripushkar@yahoo.co.in> wrote in message
news:eFI1SsgZFHA.2520@TK2MSFTNGP09.phx.gbl...
> Hi
> I like to write an application that works kind of like Profiler.
> I want to get some sort of event notification that something has happened

on
> the database server to let me know I should check for data and then log

into
> some table.
>
> I tried through system stored procedure, but they don't let me directly
> trace into the table, for that I have trace into file then from there to a
> table.
>
> I want to write something like profiler type application, that should be
> continously listening to server events.
> Are there any COM objects available for that or some other where through
> which I can do this.
>
> Thanks in Advance
>
> Pushkar
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com