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
Windows 7 domain User cannot connect to outlook-exchange
JavaScript, arrays, and DropDown
Encrypt the database backup file
VMware ESXi 4.0 - Tape drive shows up dead
How to disable VMWare View 4 Connection bar with RDP?
Regex expression for newline characters in MySQL DB
Cisco 6509 SUP720 IPv4 CEF Entries
Change IP address of Exchange 2007 mail server
ASP - Form submit show data in bottom part of page
Pass the Selection Formula to the subreport