pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedexamples VFP with Postgresql
6+ messages / 3 participants
[nested] [flat]
* examples VFP with Postgresql
@ 2007-03-07 21:12 ionut ichim <ionutichim@hotmail.com>
2007-03-08 12:26 ` Re: examples VFP with Postgresql Alejandro D. Burne <alejandro.dburne@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: ionut ichim @ 2007-03-07 21:12 UTC (permalink / raw)
To: pgsql-odbc
I'm looking for some examples VFP with Postgresql ?
thanks.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: examples VFP with Postgresql
2007-03-07 21:12 examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
@ 2007-03-08 12:26 ` Alejandro D. Burne <alejandro.dburne@gmail.com>
2007-03-08 13:02 ` Re: examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Alejandro D. Burne @ 2007-03-08 12:26 UTC (permalink / raw)
To: pgsql-odbc
2007/3/7, ionut ichim <ionutichim@hotmail.com>:
> I'm looking for some examples VFP with Postgresql ?
> thanks.
I'm using vfp with postgresql, what kind of examples?
Alejandro
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: examples VFP with Postgresql
2007-03-07 21:12 examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
2007-03-08 12:26 ` Re: examples VFP with Postgresql Alejandro D. Burne <alejandro.dburne@gmail.com>
@ 2007-03-08 13:02 ` ionut ichim <ionutichim@hotmail.com>
2007-03-08 13:23 ` Re: examples VFP with Postgresql Alejandro D. Burne <alejandro.dburne@gmail.com>
2007-03-08 17:19 ` Re: examples VFP with Postgresql Andrus <kobruleht2@hot.ee>
0 siblings, 2 replies; 6+ messages in thread
From: ionut ichim @ 2007-03-08 13:02 UTC (permalink / raw)
To: alejandro.dburne@gmail.com; pgsql-odbc
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.
>From: "Alejandro D. Burne" <alejandro.dburne@gmail.com>
>To: pgsql-odbc@postgresql.org
>Subject: Re: [ODBC] examples VFP with Postgresql
>Date: Thu, 8 Mar 2007 09:26:10 -0300
>
>2007/3/7, ionut ichim <ionutichim@hotmail.com>:
>>I'm looking for some examples VFP with Postgresql ?
>>thanks.
>
>I'm using vfp with postgresql, what kind of examples?
>
>Alejandro
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: examples VFP with Postgresql
2007-03-07 21:12 examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
2007-03-08 12:26 ` Re: examples VFP with Postgresql Alejandro D. Burne <alejandro.dburne@gmail.com>
2007-03-08 13:02 ` Re: examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
@ 2007-03-08 13:23 ` Alejandro D. Burne <alejandro.dburne@gmail.com>
2007-03-08 13:38 ` Re: examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Alejandro D. Burne @ 2007-03-08 13:23 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: examples VFP with Postgresql
2007-03-07 21:12 examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
2007-03-08 12:26 ` Re: examples VFP with Postgresql Alejandro D. Burne <alejandro.dburne@gmail.com>
2007-03-08 13:02 ` Re: examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
2007-03-08 13:23 ` Re: examples VFP with Postgresql Alejandro D. Burne <alejandro.dburne@gmail.com>
@ 2007-03-08 13:38 ` ionut ichim <ionutichim@hotmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: ionut ichim @ 2007-03-08 13:38 UTC (permalink / raw)
To: pgsql-odbc
ok.. thanks a lot
>From: "Alejandro D. Burne" <alejandro.dburne@gmail.com>
>To: pgsql-odbc@postgresql.org
>Subject: Re: [ODBC] examples VFP with Postgresql
>Date: Thu, 8 Mar 2007 10:23:48 -0300
>
>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
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: don't forget to increase your free space map settings
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: examples VFP with Postgresql
2007-03-07 21:12 examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
2007-03-08 12:26 ` Re: examples VFP with Postgresql Alejandro D. Burne <alejandro.dburne@gmail.com>
2007-03-08 13:02 ` Re: examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
@ 2007-03-08 17:19 ` Andrus <kobruleht2@hot.ee>
1 sibling, 0 replies; 6+ messages in thread
From: Andrus @ 2007-03-08 17:19 UTC (permalink / raw)
To: pgsql-odbc
For backup, use
LPARAMETERS cFn, cserver,cuser,nport,cdatabase
* Using Ed Rauh class available from Universal thread downloads
LOCAL orun as api_apprun OF api_apprun.vcx
EXTERNAL CLASS api_apprun.vcx
LOCAL cAppl
cAppl= 'pg_dump.exe'
LOCAL cmdline
cmdline = '"'+m.cAppl + [" -ibv -Z3 -f "]+m.cFn+ ;
[" -Fc -h ]+cserver+ ;
[ -U ]+user+ ;
[ -p ]+TRANSFORM(nPort)+ ;
' '+ cdatabase
text to lcBatText textmerge noshow
@echo off
@set pgpassword=<<this.cpassword>>
@echo <<cmdline>> >backuplog.txt
@echo <<"Creating backup "+m.cFN>>
@echo <<"Wait ">>
<<cmdline>> 2>>backuplog.txt
echo %errorlevel% >errorlevel.txt
ENDTEXT
lcHere=fullpath(set("directory"))
lcBat=fullpath("tmp.bat")
strtofile(lcBatText, lcBat)
orun=Newobject('api_apprun','api_apprun.vcx', '', lcbat, lcHere)
IF !orun.launchappandwait()
messagebox( m.cAppl + ' ; ' + ;
"Cannot run" )
DELETE FILE (lcbat)
DELETE FILE backuplog.txt
DELETE FILE errorlevel.txt
RETURN .f.
ENDIF
IF orun.CheckProcessexitcode()#0
DELETE FILE (m.cFN)
messagebox( +' Backup process error ; '+ ;
TRANSFORM(orun.checkprocessexitcode(),'@0' ) )
MODIFY FILE backuplog.txt
DELETE FILE backuplog.txt
DELETE FILE errorlevel.txt
DELETE FILE (lcbat)
RETURN .f.
ENDIF
nErrorLevel=val(filetostr("errorlevel.txt"))
IF nErrorLevel#0
DELETE FILE (m.cFN)
okget( " pgdup error code " + ;
filetostr("errorlevel.txt"), m.cFN, .t. )
MODIFY FILE backuplog.txt
DELETE FILE backuplog.txt
DELETE FILE errorlevel.txt
DELETE FILE (lcbat)
RETURN .f.
ENDIF
DELETE FILE (lcbat)
IF !file(m.cFN)
MODIFY FILE backuplog.txt
DELETE FILE backuplog.txt
DELETE FILE errorlevel.txt
RETURN .f.
ENDIF
""ionut ichim"" <ionutichim@hotmail.com> wrote in message
news:BAY106-F28EC6A8A9B6424BA2CACA5C0790@phx.gbl...
> 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.
>
>
>
>
>
>>From: "Alejandro D. Burne" <alejandro.dburne@gmail.com>
>>To: pgsql-odbc@postgresql.org
>>Subject: Re: [ODBC] examples VFP with Postgresql
>>Date: Thu, 8 Mar 2007 09:26:10 -0300
>>
>>2007/3/7, ionut ichim <ionutichim@hotmail.com>:
>>>I'm looking for some examples VFP with Postgresql ?
>>>thanks.
>>
>>I'm using vfp with postgresql, what kind of examples?
>>
>>Alejandro
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 1: if posting/reading through Usenet, please send an appropriate
>> subscribe-nomail command to majordomo@postgresql.org so that your
>> message can get through to the mailing list cleanly
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2007-03-08 17:19 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-07 21:12 examples VFP with Postgresql ionut ichim <ionutichim@hotmail.com>
2007-03-08 12:26 ` Alejandro D. Burne <alejandro.dburne@gmail.com>
2007-03-08 13:02 ` ionut ichim <ionutichim@hotmail.com>
2007-03-08 13:23 ` Alejandro D. Burne <alejandro.dburne@gmail.com>
2007-03-08 13:38 ` ionut ichim <ionutichim@hotmail.com>
2007-03-08 17:19 ` Andrus <kobruleht2@hot.ee>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox