Display to the user the results of some sql in an error message
I'm looking for some suggestions or direction on how I might be able to display to the user the results of some sql in an error message. My goal is to display enough information to the user about the error to help them research a problem.
Can you offer any suggestions or point me to an example I can use?
Thanks