PostgreSQL OLE DB Provider and VB6

Posted on 2009-02-16
Last Modified: 2012-06-27
I have installed the PostgreSQL 8.3 database and i have created with pgAdmin III  a blank database named testDatabase.
Now, when i have installed the database, i have also installed the PostgreSQL OLE DB Provider driver.
I have started a new VB6 project, i have have added a Microsoft ADO Data Control (Project >Components >Microsoft ADO Data Control 6.0 - OLE DB), and i tryed to connect to the testDatabase created earlyer.
I have opened the Data Link Properties for ADODC1, and I have choosed the PostgreSQL OLE DB Provider, but i don't know what information to provide for Data Source, Location and User Name in the connection tab.
I tryed to search the computer for testDatabase, but i didn't find anything.
Whai information should i provide for those fields?
Question by:Cristi_E
    LVL 32

    Accepted Solution

    Getting some help from , I'd say:

    Data Source -> MyServerName
    Location -> testDatabase
    User Name -> check your admin tool for what use name(s) you have set up
    LVL 4

    Author Comment

    Yes,   but i don't know how to find the Location path to the Database
    LVL 32

    Assisted Solution

    by:Daniel Wilson
    You don't need the file path to the database.  You need the database name.

    The more advanced RDBMS's like SQL Server and (I think) Postgre SQL do not have the client access by file path.  They serve up the data on their own ports.
    LVL 4

    Author Comment

    So, the database name si testDatabase. I fill the Data Source with testDatabase, i leave blank the location.... and what user should i fill in?  
     I saw that a user named postgres was automatically created when i have installed the database... but if i try with this one it's not working.
    Also i see that the password field in disabled. When i open pgAdmin and connect to the server i must fill in the password i set up durring the database instalation.
    LVL 4

    Author Comment

    I have reached this page..... so i have managed to solve this part.

    After i filled up all fields ... i pressed the Test connection button ... and succeeded!


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now