Home > Archive > FoxPro Help and Support > May 2005 > fetching a large dataset via sql remote view









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author fetching a large dataset via sql remote view
ghj

2005-05-26, 8:25 pm

Is there any way to show the progress and cancel from a 'requery()' on a
remote view that may return a large record set.

When I set CURSORSETPROP("MaxRecords",100,ctable) to limit the number of
records returned (10,000 may records match the view parameters), It seems to
take just as long as when is set MaxRecords to -1, there are just only 100
records in the cursor (view) after the requery() completes.

connection props as follows:

async = .f.
batch = .t.
autotrans = .t.
packed size 4096

view props as follows:
DBSetProp(ThisView,"View","SendUpdates",.T.)
DBSetProp(ThisView,"View","BatchUpdateCount",1)
DBSetProp(ThisView,"View","CompareMemo",.T.)
DBSetProp(ThisView,"View","FetchAsNeeded",.F.)
DBSetProp(ThisView,"View","FetchMemo",.T.)
DBSetProp(ThisView,"View","FetchSize",100)
DBSetProp(ThisView,"View","MaxRecords",-1)
DBSetProp(ThisView,"View","Prepared",.F.)
DBSetProp(ThisView,"View","ShareConnection",.F.)
DBSetProp(ThisView,"View"," AllowSimultaneousFet
ch",.F.)
DBSetProp(ThisView,"View","UpdateType",1)
DBSetProp(ThisView,"View","UseMemoSize",255)
DBSetProp(ThisView,"View","Tables","workordr")
DBSetProp(ThisView,"View","WhereType",1)

(vfp 9.0)


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com