pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC TROUBLE
2+ messages / 2 participants
[nested] [flat]

* ODBC TROUBLE
@ 2005-12-19 18:31 jose fuenmayor <jafn82@gmail.com>
  2005-12-19 19:52 ` Re: ODBC TROUBLE Andrus <eetasoft@online.ee>
  0 siblings, 1 reply; 2+ messages in thread

From: jose fuenmayor @ 2005-12-19 18:31 UTC (permalink / raw)
  To: pgsql-admin

Hi all, I been having a weird problem with the postgresql odbc driver, I am
working on an aplication in ms visual fox pro which use to have a database
in MS SQL Server I am migrating it to postgres, the problem with the driver
is that when I put the user name and password, the driver gives me an error
telling me that the schema=username does not exist, I dont have a clue of
why is this happening Ihave checked if I've introduced the data of the
connection more than once but it seems I am not doing this, thanks in
advance anyone that can help me.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: ODBC TROUBLE
  2005-12-19 18:31 ODBC TROUBLE jose fuenmayor <jafn82@gmail.com>
@ 2005-12-19 19:52 ` Andrus <eetasoft@online.ee>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrus @ 2005-12-19 19:52 UTC (permalink / raw)
  To: pgsql-admin

> Hi all, I been having a weird problem with the postgresql odbc driver, I 
> am working on an aplication in ms visual fox pro which use to have a 
> database in MS SQL Server I am migrating it to postgres, the problem with 
> the driver is that when I put the user name and password, the driver gives 
> me an error telling me that the schema=username does not exist, I dont 
> have a clue of why is this happening Ihave checked if I've introduced the 
> data of the connection more than once but it seems I am not doing this, 
> thanks in advance anyone that can help me.

Change connection parameters and try the following  code in vfp 9  (modify 
it to previous versions)

Andrus.
CLOSE ALL

CLEAR ALL

SET TALK OFF

SET ECHO OFF

SET SAFETY OFF

set cpdialog off

set reso off

ACTIVATE SCREEN

CLEAR

cConnString ="DRIVER={PostgreSQL Unicode};DATABASE=postgres;"+ ;

"SERVER=127.0.0.1;PORT=5432;UID=postgres;PWD=aaaa;B9=0"

nconnh=SQLSTRINGCONNECT(cconnstring)

IF nconnh<=0

LOCAL laerror[1]

AERROR(laError)

MESSAGEBOX( laerror[1,2])

RETURN

ENDIF

TEXT TO csql

CREATE temp table test ( test char(1));

insert into test values ('');

select 0 as foo, 1 as bar from test

ENDTEXT

LOCAL oCadapter as CursorAdapter

oCadapter = CREATEOBJECT('cursoradapter')

oCadapter.DataSource= nconnh

oCadapter.DataSourceType ="ODBC"

oCadapter.SelectCmd = csql

oCadapter.CursorFill()

BROWSE





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-12-19 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-12-19 18:31 ODBC TROUBLE jose fuenmayor <jafn82@gmail.com>
2005-12-19 19:52 ` Andrus <eetasoft@online.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