Pgsql and .NET (Help!) - Mailing list pgsql-hackers

From Tommy
Subject Pgsql and .NET (Help!)
Date
Msg-id 3dbcb46b$1_5@nopics.sjc
Whole thread Raw
List pgsql-hackers
I have been trying for 3 days to connect to my postgres linux box via vb
.net on a windows box. I have to make this work somehow.

I found npgsql provider and tried it but could not make it connect either. I
would prefer to use the OleDbConnection if possible.

Has anyone been able to connect via the odbc driver and .NET?

I am getting despirate and not sure which way to turn now.

A snip of the code I have been using to try to connect is below.

Thanks in advance.

Tommy


Dim connstring As String = "Server=192.168.5.5;User
Id=myname;Password=mypassword;Database=mydbname"

Dim conn As New NpgsqlConnection(connstring)

conn.Open()

conn.Close()





pgsql-hackers by date:

Previous
From: "Timothy Chan"
Date:
Subject: How to store chinese using the Postgresql?
Next
From: Tara Piorkowski
Date:
Subject: Re: Request for supported platforms