SQLEXEC(nConn, "SELECT * FROM makse WHERE false", 'makse') ... makse makse cursor updatable INSERT INTO makse ... VALUES ... TABLEUPDATE(.T.)in a lot of places.
FUNCTION SPTCursorProXy(cRemote) * Creates empty updatable SPT cursor for remote table cRemote IF !USED(cRemote+'_proxy') IF SQLEXEC(nConn, "SELECT * FROM "+m.cRemote+" WHERE false", ; m.cRemote+'_proxy')<1 RETURN .f. ENDIF ENDIF SELECT * ; FROM (cRemote+'_proxy') ; INTO CURSOR (m.cRemote) READWRITE ENDFUNC