Have you tried checking on Service Center?
There is a monitor tab which shows the full query if the execution failed
Is that what you need?