LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

postgresql

Hello,

 

i have installed  LABSQL i can connect to the local .mdb base exemple using ODBC. 

 

Now, i would like to establish a connection to a postgre 8.4.5 database without using ODBC

i have posgreSQL driver 8.4.200   

 

i tried using this string and others variations without success

 

Provider=MSDASQL.1;
Extended Properties="DRIVER={PostgreSQL ANSI};
SERVER=aaaa.bbb.bbb.fr;
UID=name;                                                                      /////   name = schema
PWD=pass;
READONLY=0;
DATABASE=DIDB"

 

how can i add the 5432 port ? PORT=5432 ?

 

Regards

 

Tinnitus

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 7
(4,294 Views)

Is there a reason you don't want to use ODBC? How else are you planning to talk to the database? OLE DB?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 7
(4,272 Views)

Hello,

 

I tried to use odbc to acces a postgre database

 

opening connexion to database seems to be OK but i encounter an error wanting to open a table.

 

Someone has an idea ?

 

 Regards

 

Tinnitus

 

 

 

 

 

 

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Download All
0 Kudos
Message 3 of 7
(4,236 Views)

There's a postgresql odbc driver that I've used with great success

0 Kudos
Message 4 of 7
(4,061 Views)

The function that is throwing the error looks like it wants to execute a query called "test", but you are trying to open a table.  ??

0 Kudos
Message 5 of 7
(4,046 Views)

Hi tinnitus,

 

Are you using the NI database toolkit? 

 

Because the NI database toolkit works with PostGreSQL, if so, you can PM me and I'll send you an example program

 

Regards,

 

 

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 6 of 7
(4,020 Views)

Why are you responding to a year old thread?

0 Kudos
Message 7 of 7
(4,007 Views)