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
OdbcConnection con = new OdbcConnection("Driver={PostgreSQL };Server=localhost;Port=2012;Database=DataCenter;Uid=postgres;Pwd=post@123;");
but it is throwing an ODBException. Please suggest me a code.