title: PostgreSQL ODBC Connection VB .NET Data source name not found and no default driver specified
body: <p>I receive the following error attempting to employ an ODBC connection to connect to a PostgreSQL DB</p>
  <pre><code>Error: {&quot;ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified&quot;}
  </code></pre>
  <ul>
  <li>IDE: Visual Studio 2019</li>
  <li>Language: Visual Basic .Net</li>
  <li>PostgreSQL DB VersionL 10.0</li>
  </ul>
  <p>[PostgreSQL ODBC Connection][1]<br>
  I have created a SUCCESSFUL 64bit connection to my PostgresSQL with the 64bit ODBC adapter.</p>
  <p>My code to test the connection:</p>
  <pre><code>Imports System.Data.Odbc
  Module Module1
      Sub Main()
          Dim connectionString As String = &quot;&quot;
          connectionString = &quot;Driver={PostgreSQL}; Server=localhost; Port=5432; Database=dvdrental2; Uid=postgres; Pwd=xxxxxx&quot;
          Dim cnn As OdbcConnection
          cnn = New OdbcConnection(connectionString)
          Try
              cnn.Open()
              MsgBox(&quot;Connection Open!&quot;)
              cnn.Close()
          Catch ex As Exception
              MsgBox(&quot;Can not open connection!&quot;)
          End Try
      End Sub
  End Module
  </code></pre>
  <p>I understand an ODBC connection is not the best means to connect to a PostgreSQL DB; however, I was curious about implementing this type of connection.<br></p>