Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote connection to web database problem???
Message
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00796034
Message ID:
00796633
Views:
16
ConnectTimeOut will solve your problem.


Check out the help of SqlSetProp

SqlSetProp(Handle,ConnectTimeOut,Value)


Specifies the time to wait (in seconds) before returning a connection time-out error. If you specify 0, the wait is indefinite and a time-out error is never returned. ConnectTimeOut can be 0 to 600. The default is 15.
Read/write.

>That will only work if the connection is established already will it not.
>
>How can you set a timeout on the actual time it takes to connect to the remote database? At the moment there is no timeout, so if the internet connection is slow, and no connection can be made to the database, the program just hangs up!
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform