I'm trying to get records in Asynchronous and non-batchmode. I cannot figure out how to use sqlmoreresults().
I have the following coding:
lnhandle = sqlconnect("test"
?sqlsetprop(lnhandle,"Asynchronous", .t.)
?sqlsetprop(lnhandle,"Batchmode", .f.)
if sqlexec(lnhandle, "select top 1000000 field1 from table1", "curtable1" = 1
do while .t.
if sqlmoreresults(lnhandle) = 2
exit
else
?"Still getting"
endif
enddo
endif
Thank you for any help
I have the following coding:
lnhandle = sqlconnect("test"
?sqlsetprop(lnhandle,"Asynchronous", .t.)
?sqlsetprop(lnhandle,"Batchmode", .f.)
if sqlexec(lnhandle, "select top 1000000 field1 from table1", "curtable1" = 1
do while .t.
if sqlmoreresults(lnhandle) = 2
exit
else
?"Still getting"
endif
enddo
endif
Thank you for any help