Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to connect to PostgreSQL from Visual Basic 6

Posted on 2009-02-12
1
Medium Priority
?
552 Views
Last Modified: 2012-05-06
How can i connect to PostgreSQL from Visual Basic 6?   I mean other way than ODBC.
Thanks!
0
Comment
Question by:Cristi_E
1 Comment
 
LVL 3

Accepted Solution

by:
Rawdust earned 1500 total points
ID: 23628396
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

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question