lcStringCnxLocal="DRIVER={PostgreSQL Ansi};SERVER=localhost;port=5432;DATABASE=empresas;UID=postgres;PWD=cacho7;"
SQLSETPROP(0,"DispLogin" , 3 )
lnHandle=SQLSTRINGCONNECT(lcStringCnxLocal)
IF lnHandle > 0
MESSAGEBOX("Conexión con la Base de Datos Satisfactoria",0+48,mSistema)
ELSE
MESSAGEBOX("No se pudo conectar con la Base de Datos."+CHR(13)+CHR(13)+;
"El Sistema regresará a Windows",0+48,mSistema)
CANCEL
ENDIF
conexion=lnHandle
RETURN lnHandle
Y no podemos conectarnos.
Gracias por su ayuda.