We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

How to connect to PostgreSQL from Visual Basic 6

Medium Priority
573 Views
Last Modified: 2012-05-06
How can i connect to PostgreSQL from Visual Basic 6?   I mean other way than ODBC.
Thanks!
Comment
Watch Question

Commented:
Have you tried OLE DB?
Heres a string and a couple threads with some good VB6 info.
Info
http://www.xtremevbtalk.com/showthread.php?t=268727
Stings
http://www.xtremevbtalk.com/showpost.php?p=947221&postcount=17

Wish I still had VB6 to test it for ya(.net FTW).
Const strPG As String = "Provider=PostgreSQL OLE DB Provider;Password=YourPassword;User ID=UserName;Data Source=localhost;Location=DefaultDatabaseName"

Open in new window

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.