Connecting Tech Pros Worldwide Forums | Help | Site Map

SQLExecDirect does not return immediately when link between client and server and app

Newbie
 
Join Date: Sep 2008
Posts: 2
#1: Sep 2 '08
Hi,

When I execute SQLExecDirect() in C++, and if my link between server and client is fluctuating, it returns after a long time and my application hangs.

why is this happenning can any give the solution to this?

Thanks in advance

DR

Stang02GT's Avatar
Moderator
 
Join Date: Jun 2007
Location: USA
Posts: 1,152
#2: Sep 3 '08

re: SQLExecDirect does not return immediately when link between client and server and app


make sure your connections does not fluctuate! If you do not have a steady reliable connection your program is going to continue to hang up.
Newbie
 
Join Date: Sep 2008
Posts: 2
#3: Sep 4 '08

re: SQLExecDirect does not return immediately when link between client and server and app


Hi,

If this happens can we have timeout for sqlexecdirect() and return if we dont get any reply within some time.
Reply