Estamos utilizando MYSql para nuestra aplicación, las tablas las abrimos con las siguientes instrucciones:
PROCEDURE BDFAC000
lcStringCnxLocal = "DRIVER={MySQL ODBC 5.2w Driver};" + ;
"SERVER="+Servidor+";" + ;
"UID="+mUid+";" + ;
"PWD="+mPwd+";" + ;
"DATABASE=&La_Base;" + ;
"OPTIONS=131329;"
SQLSETPROP(0,"DispLogin" , 3 )
lnHandle = SQLSTRINGCONNECT(lcStringCnxLocal)
SQLEXEC(lnHandle,"Select * from BDFAC000 ORDER BY Factura ASC","BDFAC000")
CURSORSETPROP([Buffering],5,"BDFAC000")
CURSORSETPROP([SendUpdates],.T.,"BDFAC000")
Cuando queremos ordenar la tabla por el campo Factura utilizamos
CURSORSETPROP([Buffering],3,"BDFAC000")
y escribimos INDEX ON Factura TAG Factura
porque con el Buffering en 5 no nos deja indexar, pero cuando hacemos esto nos regresa el error de el búfer de tablas....
Por favor ayuda porque estamos trabados en esto.
Saludos y Gracias