SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Audit listing of Select Statements


Audit listing of Select Statements

Author
Message
jbechard
jbechard
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 7
I'm looking for a method for monitoring/auditing browsing.

I'm aware of Lumigent, but after reviewing the hooks that it needs into the database/network I'd like to find a simpler alternative.

Is there a 'simple' way to output a listing of Select statements in SQL Server -- not the results returned - just the Select statement?

James
Eric Desch
Eric Desch
Grasshopper
Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)

Group: General Forum Members
Points: 18 Visits: 219
I don't know if you will consider this "easy" but SQL Server Profiler should do the trick. Look for the event class 'TSQL'

EKD
Adam Haines
Adam Haines
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3306 Visits: 3135
You could enable C2 auditing. C2 auditing can be detrimental to performance and is not always 100% accurate, but it provides a very robust method for tracking access to SMOs. The output file can be launched via profiler and is quite legible.

more info:
http://www.sqlservercentral.com/articles/Monitoring/basicsofc2auditing/1547/
http://msdn2.microsoft.com/en-us/library/ms187634.aspx



My blog: http://jahaines.blogspot.com
ianT
ianT
SSC-Addicted
SSC-Addicted (432 reputation)SSC-Addicted (432 reputation)SSC-Addicted (432 reputation)SSC-Addicted (432 reputation)SSC-Addicted (432 reputation)SSC-Addicted (432 reputation)SSC-Addicted (432 reputation)SSC-Addicted (432 reputation)

Group: General Forum Members
Points: 432 Visits: 1299
Take care - C2 Auditing seemed to cause my server to crash.

Disabled it and no crashes since (6 months).
G.R.Prithiviraj Kulasingham
G.R.Prithiviraj Kulasingham
Mr or Mrs. 500
Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)

Group: General Forum Members
Points: 581 Visits: 367
Take care - C2 Auditing seemed to cause my server to crash.


C2 Auditing is handled through trace events. I prefer to use customized trace (store them to a file.)
You can automate it.

Profiler has UI, trace doesn't have one, other than that fucntionality wise you will capture the sme information.

Cheers,
Prithiviraj Kulasingham

http://preethiviraj.blogspot.com/
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search