I have a WPF application. My users wish to see what stored procedures/functions an event calls.
I mean how can I show the stack trace(of only which DB object getting called) in to the user in simple english ?
How could I approach this problem.
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.
if you only want to show English text like stored procedure’s names and other internal commands executed in your application I don’t think the StackTrace/Frame are optimal.
if you already have a logging framework in place (NLog, Log4Net etc…), you could add a log.info whenever you call a stored printing out the stored name and db name for example, then in the UI if you plan to show some kind of monitoring or log window, or even simply the last one in the status bar, you can read those informative logs.