Microsoft
Software
Hardware
Network
Question : Record / Log SQL Queries
I have a database that various people access in various ways, through dedicated apps, through a web based system (SSRS), and through MS sQL Server Management Studio. I need a solution to log the various queries that are run only if they return certain data, such as email address. Something like
Insert SQL Query into user_log table if rows returned are in ('email','address') etc
Can this be done?
Thanks
Mike
Answer : Record / Log SQL Queries
Allow me to repeat myself :-) :
You will have to run a trace. [See my previous comment for filtering of trace.]
If you need help setting up the trace, please let me know.
Random Solutions
Error occurred while creating the transfer set
Replication errors on new Windows 2008 RC DC's
How do I find a value in a third column based on a match between two other columns?
Error on VBScript statement
.DefaultView.RowFilter to check duplicate in datatable is terribly slow
Using find and grep to create a file
Excel 2007 Event when changing from one workbook sheet to another with in the same workbook.
image edge showing
How to use C# code in a VB.NET project
Build sitemap for website