I have a query running on a lot of data in SSMS. After about 20 minutes of execution, the query fails with the "Divide by zero" error (some results have already been returned).
It would be useful to know on which data the error appeared, i.e. find the null id / row number on which the error can be reproduced.
The request itself is quite complex, so I'm not going to publish it; the question is more technical - is there a magazine somewhere or another way to find problem lines?
source
share