Re: sqlconnect by Bernhard
Bernhard
Wed Feb 16 05:18:04 CST 2005
Hi mohamed
> my problem that when i make sqlconnect(connection name,sql,query name) it
> dosen't wait untill the query complete with all data and the procedure go to
> the next step in the next line.
> is there any way to wait untill complete all sql data in the query and go to
> the next line?
I think, your above line should read like this:
SQLEXEC(connection_handle, sql, query_name)
and not
SQLCONNECT(...)
Something switches your sql connection into asynchronous mode.
You can switch back by:
SQLSETPROP(nStatementHandle, "Asynchronous", .F.)
Another way could be:
lnResult = SQLEXEC(connection_handle, sql, query_name)
DO WHILE lnResult = 0
lnResult = SQLEXEC(connection_handle)
ENDDO
Regards
Bernhard Sander