This example shows how to try to connect to a server from a thread to make sure the application stays responsive. This is very useful over slow connections where a full connection can take a few seconds.

How to use?: 

To use this example, have a remote server running, set database alias to one that exists on your server, and set tablename to an existing one.

Then run program, observe it will try to connect to the ServerName hardcoded for 10 seconds, and then give up.

To adjust the timeout, set the Sleep() parameter to the needed number of milliseconds.

Replace hardcoded ServerName with the one your remote server is using, and run program. It should now connect.

Code Examples
Current Version: 
Supported Products: 
NexusDB V2
NexusDB V3
CheckServerName.zip2.95 KB