SQL freezes or fails randomly, how to timeout or try/catch?
3 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Database Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!