>Hi Aleksey,
>
>Thanks again for the reply...I've got my code working now, many thanks...
>
>However I have noticed a change of behavour with my code depending on which way I set the AllowSimultaneousFetch proeprty.
>
>Previously, before the introduction of the AllowSimultaneousFetch property my code would, in effect have looked like this ;
>
>
>DELETE DATABASE REMOTE
>CREATE DATABASE REMOTE
>CREATE CONNECTION "MyDataBaseConn" CONNSTRING 'driver=SQL SERVER;server=(local);uid=USER1;pwd=PASSWORD1;database=MyDataBase'
>
>CREATE SQL VIEW Test REMOTE CONNECTION MyDataBaseConn SHARE AS SELECT * FROM SOMELARGETABLE
>DBSETPROP('Test','view', 'AllowSimultaneousFetch',.F.)
>DBSETPROP('Test','view', 'fetchasneeded', .F.)
>DBSETPROP('Test','view', 'fetchsize', 100)
>DBSETPROP('Test', 'View','ShareConnection', .T.)
>
>USE test
>INDEX ON SomeField TAG SomeTagName
>
>
>When the code reaches the 'index on' command it would go into a wait state until all the records had been returned and the index command would work ok.
>
>If I change the AllowSimultaneousFetch to True, and re-run the code the code doesn't go into a wait state, and reports an error when it reaches the Index command.
>
>The error is 'Connectivity error : Unable to retrieve specfic error information. Driver is probably out of resources'
>
>Do we now have to test the connection before attempting to index ?
>
>Could you tell me which other commands, such as indexing, will be affected?
>
>Many Thanks, Bernard
VFP have a 2 bugs here.
Workaround:
....
USE test
=RECCOUNT()
INDEX ON SomeField TAG SomeTagName
Fabio