Okay, I needed a break from some BS so I threw together a launcher that will check for a connection and display the exception message without the connection string.
In the ZIP file’s bin folder is an executable. Point your shortcut to that executable (wherever you put it) and be sure to change the icon so it looks like the old shortcut.
If no error occurs on connection, it will start SambaPOS.
The only drawback is additional load time from checking connection another time.
I assumed the default installation location for SambaPOS.

source code included
PosSqlCheck.zip (17.3 KB)