Results 1 to 4 of 4

Thread: Postgres connection

  1. #1
    finomatic is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    May 2012
    Posts
    2
    Reputation
    0

    Postgres connection

    Hi all

    I would like to ask, how to connect Postgres to VB.Net ...?

    Thanx ...

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is online now VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,341
    Reputation
    1543
    The same way that you connect to any other database: using ADO.NET. This is one of the first places to look:

    ConnectionStrings.com - Forgot that connection string? Get it here!

    It will tell you what providers, standard and otherwise, are available for any particular database. You'll pretty much always be able to use OleDb and Odbc, which will require you to install an appropriate OLE DB provider or ODBC driver. There may also be a database-specific provider available, either from the database vendor or a third-party. Those may be free or they may not. Once you've picked an ADO.NET provider, the code pattern is exactly the same regardless. Only the specific types will change.

  3. #3
    finomatic is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    May 2012
    Posts
    2
    Reputation
    0
    thanks 4 the answered,

  4. #4
    cjard's Avatar
    cjard is offline VB.NET Forum All-Mighty
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2006
    Posts
    7,027
    Reputation
    1705
    postgres .net - Google Search

    Top answer = a .net native driver written by postgres team
    Next answer = an article discussing connecting to postgres with ODBC

    Native is preferred, but either would work

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking