title: What is the connectionstring to connect with postgresql using ODBC driver?
body: <p>I am currently working with  a task to connect with PostgreSQL and retrieve data from that DB to my .net application,I am using the code like</p>
  
  <pre><code>OdbcConnection con = new OdbcConnection("Driver={PostgreSQL };Server=localhost;Port=2012;Database=DataCenter;Uid=postgres;Pwd=post@123;");
  </code></pre>
  
  <p>but it is throwing an <code>ODBException</code>. Please suggest me a code.</p>