Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7716677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:41:36+00:00 2026-06-01T02:41:36+00:00

So I have the following connection string which is causing me issues. I am

  • 0

So I have the following connection string which is causing me issues. I am attempting to write an application which is capable of being database agnostic (difficult but not impossible) and I have come to testing it on PostgreSQL however I cannot seem to get an OLE connection to work with it. From what I have seen it is entirely possible.

I got everything working using a specific class for PostgreSQL but this used the Npgsql types rather than generic OLE types.

E.g.
private NpgsqlCommand m_postgreSQLDatabaseCommand;

Instead of
private OleDbCommand m_oleDatabaseCommand;

This is not acceptable in my circumstances.

I tried simply changing the connection string to use the Npgsql provider but I am not sure if I am using it correctly. I get the error below:

Connection String:

<add name="ApplicationPostgresDefault" 
    connectionString="Server=127.0.0.1;Port=5432;
    Database=myDatabase;
    User Id=myUser;
    Password=myPass; 
    Provider=Npgsql"
/>

Error:

The 'Npgsql' provider is not registered on the local machine.

What can be done to solve this?

If I get the provider in there correctly will I be able to communicate with PostgreSQL as I was with Npgsql objects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:41:38+00:00Added an answer on June 1, 2026 at 2:41 am

    The local machine doesn’t have the provider installed.

    I would suggest using a native client rather than OleDb anyway:

    http://npgsql.projects.postgresql.org/

    http://connectionstrings.com/Providers/npgsql

    that’s your choose

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have vb.net application which is using Vistadb with following connection string. I am
I have the following connection string: Data Source=localhost\\SQLEXPRESS; , it complains that '' is
I have the following connection string, and you will notice Provider's.Tests, notice the single
I currently have an application which uses EF database first which was built against
i have following application(say App1) sitting on port 8888 on tomcat which is opening
I have an application which connects to a database, retrieves a username from a
I have an SSIS package that does the following: Selects the connection strings from
I have the following five tables: ISP Product Connection AddOn AddOn/Product (pivot table for
I have the following code. $connect = new Connection (); $response = $connect->putFile($fileName, $destination);
I have the following POST request: POST http://blah/Request HTTP/1.1 Host: blah Content-Length: 322 Proxy-Connection:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.