Hi, thank you for contacting JustAnswer.com. My name is Russell. I will do my best to provide the right answer to your question.
Being unable to connect or query, for a piece of software-program like SAM 4.2.2, means that either the internet connection is down, or the communication of the software is blocked, or perhaps that a local database has become corrupted.
1. check your internet connection - open a web page or three to see if function is still there.
2. consider when your SAM 4.2.2 software last worked properly. Have there been any network changes since then? if so, one of them may have blocked the software from communicating.
3. consider whether you could back up your data to another device altogether, then uninstall SAM 4.2.2 and restart your computer, then perhaps reinstall SAM 4.2.2 afresh.