Borrar filtros
Borrar filtros

SQL freezes or fails randomly, how to timeout or try/catch?

4 visualizaciones (últimos 30 días)
Calvin Ebert
Calvin Ebert el 22 de En. de 2020
Hi,
I have a function that only has an sql pull in it. Sometimes it works, sometimes it doesnt. In another function that calles the sql pulls, if it is run together, it fails. If it stops right before and I run the function by putting it in the workspace, it works. Sometimes it crashes matlab. When it fails, it usually holds for a long time. Normally it should only take about 2 seconds when it does work. Is there a timeout function I can use to break matlab away from it when it freezes on the sql pull? How could I used a try/catch statement to catch it and make it try it again if it doesnt work?

Respuestas (0)

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by