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

2 visualizzazioni (ultimi 30 giorni)
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?

Risposte (0)

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by