Is there a query I can run which will display all the queries which have been run on the server within a date range for a specific database?
I need to find out what parameter values were passed to a Stored Procedure which was executed last week
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No
The only way this can be done is if a monitoring process is set up in advance.
Monitoring a database, e.g. through SQL Profiler, has a performance impact, so one should be wary about using this against a live system for prolonged periods.
A better way to monitor this kind of activity, would be by use of logging from the calling code.