He logrado conectarme de VfP con POSTGRES; pero no puedo ver el cursor generado por el codigo que he desarrollado:
lcstring ="Driver={PostgreSQL ANSI};Server="+"localhost"+";Port=5432;Database="+"fexlog"+";Uid=postgres;Pwd=06676544;"
nconexion=SQLSTRINGCONNECT(lcstring,.t.)
IF nconexion< 1
MESSAGEBOX( "Imposible conectar con Servidor PostgreSQL" + CHR(13), 16 )
RETURN(.f.)
ENDIF
SQLEXEC(nconexion,"select * from felix.horario where tipo='M'","x1")
brow
me sale el siguiente mensaje
"No table is open in the current area"
PARAMETROS DE POSTGRES
BASE DE DATOS=fexlog
ESQUEMA=felix
TABLA=horario
lcstring ="Driver={PostgreSQL ANSI};Server="+"localhost"+";Port=5432;Database="+"fexlog"+";Uid=postgres;Pwd=06676544;"
nconexion=SQLSTRINGCONNECT(lcstring,.t.)
IF nconexion< 1
MESSAGEBOX( "Imposible conectar con Servidor PostgreSQL" + CHR(13), 16 )
RETURN(.f.)
ENDIF
SQLEXEC(nconexion,"select * from felix.horario where tipo='M'","x1")
brow
me sale el siguiente mensaje
"No table is open in the current area"
PARAMETROS DE POSTGRES
BASE DE DATOS=fexlog
ESQUEMA=felix
TABLA=horario
