Re: Audit stored procedures



Sheela (Sheela@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
There are over 100 stored procedures that access data from a set of
tables in a database. Users use these stored procedures to get different
type of data from the tables. I would like to find out who read data
from the tables without having to run SQL Profiler. Is there a way to do
it?

Rather than using Profiler, use a server-side trace instead. This is a lot
leaner on resources. The simplest way to get started is to set up a trace
in Profiler, and then select Export from the File menu. Be careful to test
the trace when you set it up, because Profiler does not always script the
trace correctly.

If your question was meant to be "how do I audit without any trace at all",
I'm afraid that in SQL 2005 your options are a bit limited. There are some
third-party products like Lumigent's auditing tool, but I guess in runs
a trace somewhere for you.

In SQL 2008 there are new auditing capabilities.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Running profiler on busy 8-cpu Sql Server
    ... I always start with a light trace and add more detail as I go along to ... SQL Server MVP ... > I think it's also worth saying that you should introduce Profiler ... > SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: URGENT deadlock question
    ... > Profiler to view a trace, SQL Server dumps rowsets across the network to ... > SQL Server doesn't feel like it can keep up with all the activity. ... > server-side trace to a trace file guarantees you'll see everything. ...
    (microsoft.public.sqlserver.server)
  • RE: SQL Server 2000 Profiler (Bug?)
    ... could trace many Error 208 by using Profiler when you using SQL Server ... Enterprise Manager navigate around in the Server.Have I fully understood ...
    (microsoft.public.sqlserver.server)
  • RE: Insert Performance Degradation
    ... Use Profiler to trace the statements sent to sql server. ... duration template and filter for duration greater than, let us say, 1000 ...
    (microsoft.public.sqlserver.programming)
  • Re: URGENT deadlock question
    ... >> network to the Profiler client, but there is no guarantee you'll see ... >> everything if SQL Server doesn't feel like it can keep up with all ... Just make sure the trace file is created on a local ...
    (microsoft.public.sqlserver.server)

Loading