Thread: PostgreSQL FAQ
View Single Post
  #2 (permalink)  
Old 03-24-06, 15:47
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,775
ODBC Connection Strings for pG

It took me some time to determine a good connection string to connect to PostgreSQL. Yes, the DSN or the dotNet connections strings are pretty well defined at many sites, but I couldn't locate a good reference for a DSN-less connection string.

After a lot of trial and error, I finally managed to get one that worked. Check out these; they work for me...

Now, tracking down a connection string CAN be painful. Ref this tutorial in our sister site, Xtreme VB Talk, for a few approaches to creating that perfect connection string....

If you prefer to download a finished utility, one based on the above code is available here.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert


Last edited by loquin; 03-26-07 at 18:02.