Basically I’ve been asked to set up configurable timeouts (the lock screen and logout ones) for each user, so I added two columns to the user table. The problem is I don’t have access to the customer’s database (from here at least) so I’ve set the system up to check if the two columns have been added on startup, and if they haven’t it adds them. The issue is that before the table is updated SQL errors are thrown by the global timer that checks if the user has timed out. The errors aren’t critical or anything, I just like seeing no errors . So I have two questions:
-Is there some way we can catch the SQL errors before the message box is shown?
-Is there a way to enable/disable a global event timer in code?
In response to your questions, the error was that the column doesn’t exist and I’m doing the table update in the startup code section.