pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Has anyone accessed postgresql in linux from VB code
2+ messages / 2 participants
[nested] [flat]

* Has anyone accessed postgresql in linux from VB code
@ 2005-07-15 06:18 Minal <minalac@yes2etl.com>
  2005-07-15 13:36 ` Re: Has anyone accessed postgresql in linux from VB code Greg Campbell <greg.campbell@us.michelin.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Minal @ 2005-07-15 06:18 UTC (permalink / raw)
  To: pgsql-odbc

Has anyone accessed postgresql in linux from VB code???
I have added the following code..

Dim MyDB As New ADODB.Connection
Dim Rc As New ADODB.Recordset
Private Sub Command1_Click()


MyDB.Provider = "PostgreSQL"
 
MyDB.CursorLocation = adUseClient
'MyDB.Open "Data Source=10.1.2.86;Location=trainneedcorp;'db_admin','admin'"
MyDB.Open "DRIVER={postgresql};DATABASE=trainneedcorp;Data 
Source=10.1.2.86;PORT=5432;UID=db_admin;PWD=admin;"
End Sub

I am getting the error
"No postgresql username specified in startup package"

Minal



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

* Re: Has anyone accessed postgresql in linux from VB code
  2005-07-15 06:18 Has anyone accessed postgresql in linux from VB code Minal <minalac@yes2etl.com>
@ 2005-07-15 13:36 ` Greg Campbell <greg.campbell@us.michelin.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Greg Campbell @ 2005-07-15 13:36 UTC (permalink / raw)
  To: Minal <minalac@yes2etl.com>; +Cc: pgsql-odbc

Yeah, I think one or two people may have connected to PostgreSQL with 
VB/VBA code.

Go to the Postgresql ODBC site
http://gborg.postgresql.org/project/psqlodbc/projdisplay.php
Follow the FAQ links to a summary on using VB with postgresql.

You seem to have a connection string formation issue. Have you tried the 
UDL trick. Go to the archives of this discussion forum.

Search for UDL, return data by relevence for better results than by 
date. Or jsut google on how to use a microsoft UDL file.

The UDL trick will get you a complete connection string, but you don't 
need most of the parameters. You mostly need to specify the server, the 
database, the user and password, Optionally you can inlcude important 
items like row versioning, long varchar return as, and booleans return as.






Minal wrote:
> Has anyone accessed postgresql in linux from VB code???
> I have added the following code..
> 
> Dim MyDB As New ADODB.Connection
> Dim Rc As New ADODB.Recordset
> Private Sub Command1_Click()
> 
> 
> MyDB.Provider = "PostgreSQL"
> 
> MyDB.CursorLocation = adUseClient
> 'MyDB.Open "Data 
> Source=10.1.2.86;Location=trainneedcorp;'db_admin','admin'"
> MyDB.Open "DRIVER={postgresql};DATABASE=trainneedcorp;Data 
> Source=10.1.2.86;PORT=5432;UID=db_admin;PWD=admin;"
> End Sub
> 
> I am getting the error
> "No postgresql username specified in startup package"
> 
> Minal
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>       choose an index scan if your joining column's datatypes do not
>       match

Attachments:

greg.campbell.vcf (text/x-vcard, 239B) download begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard
^ permalink raw reply [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-07-15 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-15 06:18 Has anyone accessed postgresql in linux from VB code Minal <minalac@yes2etl.com>
2005-07-15 13:36 ` Greg Campbell <greg.campbell@us.michelin.com>

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