[Mono-devel-list] Problem with connecting to Postgress
Rafael Teixeira
monoman at gmail.com
Tue Feb 1 11:11:09 EST 2005
Use the PostgreSQL ADO.NET provider NPGSQL, or Canuto's Advanced Data
Provider ( http://sourceforge.net/projects/advanced-ado/ )
The OLEDB provider depends on correctly installed database-drivers and
is not actively developed/supported in mono.
Hope it helps,
On Tue, 01 Feb 2005 21:19:49 +0530, Umashankar Ashwathnarayanan
<umashankara at dpsl.net> wrote:
> Hi
> I want to connect to Postgres 7.3.2 through C# in Mono.
>
> I tried this code , but i could not connect to server .
> so plz help me.
>
> 172.16.1.16 = Server IP
>
> the Data Base was created on
> createdb kumar ;
> then create table was executed
> connection to postgres is made via
> su - postgres
>
> string connectionString =
> "Provider=PostgreSQL;" +
> "Addr=172.16.1.16;" +
> "Database=demo_merlion;" +
> "User ID=;" +
> "Password=";
>
> OleDbConnection dbcon = new
> OleDbConnection(connectionString);
>
> dbcon.Open();
>
> Kumar
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
--
Rafael "Monoman" Teixeira
---------------------------------------
I'm trying to become a "Rosh Gadol" before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
More information about the Mono-devel-list
mailing list