SQL 2000 - Users with privilege to do a Trace

Hellow everybody,

We need that some users not have access to do insert/update/delete in the DB, but they should have access to do a select and a trace in the database.

I'm not sure if this is posible, then I red that to have the privilege to do a trace, you need to be System Admin in SQL.

Please help me, I need this ASAP.




more ▼

asked May 16, 2012 at 08:08 PM in Default

avatar image

394 33 33 38

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

A trace is not something you instantiate through access to a particular database. It's a server level process. So, you won't be able to do exactly what you want. Instead, what you can do is set up a SQL Agent job that will run as a system administrator and you can have that job enable a trace, filtered for the database in question. Then, you just have to give your people permission to run that SQL Agent job.

One more thing. Since all good trace sessions should output to a file, you'll need to give them access to read the files from the directory where you output your traces.

You do not, nor should you ever, allow people to run the Profiler gui against your production environment directly.

more ▼

answered May 16, 2012 at 08:26 PM

avatar image

Grant Fritchey ♦♦
137k 20 46 81

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: May 16, 2012 at 08:08 PM

Seen: 702 times

Last Updated: May 16, 2012 at 08:26 PM

Copyright 2018 Redgate Software. Privacy Policy