Re: examples VFP with Postgresql - Mailing list pgsql-odbc

From Alejandro D. Burne
Subject Re: examples VFP with Postgresql
Date
Msg-id 8398dc6d0703080523u458ab8dcw9ea6626ca3feb84a@mail.gmail.com
Whole thread Raw
In response to Re: examples VFP with Postgresql  ("ionut ichim" <ionutichim@hotmail.com>)
Responses Re: examples VFP with Postgresql  ("ionut ichim" <ionutichim@hotmail.com>)
List pgsql-odbc
2007/3/8, ionut ichim <ionutichim@hotmail.com>:
> Thanks for answer.
> I'm interest how can i work with pg +VFP ... connections,sored
> procedures,backup ,etc
>   Some links for simple examples, to test.

First at all I'm using sqlpassthrough:

a.Create connection:
_Conn=SQLCONNECT('<ODBC Conn>','<user>','<pwd>')

b.Run sql statement
lResult=SQLEXEC(_Conn,"SELECT field1, field2... FROM table","<cursor_name>")
IF lResult>0
   * all goes fine
ELSE
   MESSAGEBOX(MESSAGE())
ENDIF

c.Disconnect
lResult=SQLDISCONNECT(_Conn)

Stores procedures, functions is like any other sql statement using psql.
Backups -> RTFunnyM

Alejandro

pgsql-odbc by date:

Previous
From: "ionut ichim"
Date:
Subject: Re: examples VFP with Postgresql
Next
From: "ionut ichim"
Date:
Subject: Re: examples VFP with Postgresql