I haven't worked with PostGre recently.
I have PostGre server along with PostGre OLEDB Provider installed on my PC some years back.
Now, I tested using our ADO functions and it is working well.
My Server Version:
PostgreSQL 10.7, compiled by Visual C++ build 1800, 32-bit
This is my test code:
#include "fivewin.ch"
function Main()
local oCn
oCn := FW_OpenAdoConnection( "POSTGRE,localhost,postgres,postgres,India@1947", .t. )
if oCn == nil
? "failed to connect"
else
? "connected"
XBROWSER FW_AdoTables( oCn ) SETUP ( ;
oBrw:aCols[ 1 ]:bLDClickData := ;
{ |r,c,f,o| BrowseAdoTable( oCn, o:Value ) } )
oCn:Close()
endif
return nil
static function BrowseAdoTable( oCn, cTable )
local oRs := FW_OpenTRecSet( oCn, "select * from " + cTable )
XBROWSER oRs TITLE cTable FASTEDIT
oRs:Close()
return nil
Note: This XBROWSER command works with your FWH2206 also.
I will soon download and install ODBC driver and test with it.