Author Topic: SQL Timeout Error Popup  (Read 1151 times)

jsu0234m

  • Newbie
  • *
  • Posts: 16
    • View Profile
SQL Timeout Error Popup
« on: February 14, 2020, 01:16:15 PM »
I created a line monitoring advanced hmi project last year that displays information to operators in our break rooms and it works great except for every so often i get a SQL timeout popup that happens and it blocks some of the screen, it continues to update the data on screen and pull from SQL as normal even with the timeout error on the screen. So it still works, it just has a error saying it timed out reading from SQL one time. It updates and re-pulls the data every 30 seconds so if it misses a couple times I'm not worried about it.


Is there a way to turn off the error popups? I know its probably better to figure out why SQL is timing out and fix that but its not really worth my time in tracking that down if i don't have too.

Any ideas on how to stop this error from popping up?


Phrog30

  • Guest
Re: SQL Timeout Error Popup
« Reply #1 on: February 14, 2020, 02:25:43 PM »
Yes, better written queries but the easiest is wrap in try/catch.  Many examples on the web.