Thread: about c# and postgresql
hi,all
i have a local system with windows xp.
i want to use c# to connect with a postgresql database running in a linux system.
i get libpg.dll and PgOleDb.dll.
that's enough for me to do so? or could you tell me how?
i have a local system with windows xp.
i want to use c# to connect with a postgresql database running in a linux system.
i get libpg.dll and PgOleDb.dll.
that's enough for me to do so? or could you tell me how?
I highly recommend you use the Npgsql driver, and if you're feeling really saucy try NHibernate on top of that.
http://pgfoundry.org/projects/npgsql
http://www.nhibernate.org/
Bryan
http://pgfoundry.org/projects/npgsql
http://www.nhibernate.org/
Bryan
On 7/23/07, longlong <asfnuts@gmail.com> wrote:
hi,all
i have a local system with windows xp.
i want to use c# to connect with a postgresql database running in a linux system.
i get libpg.dll and PgOleDb.dll.
that's enough for me to do so? or could you tell me how?
I use Npgsql for client/server applications
you can view the manual at: http://npgsql.projects.postgresql.org/docs/manual/UserManual.htm
On 23 Jul 2007, at 22:47, longlong wrote:
hi,all
i have a local system with windows xp.
i want to use c# to connect with a postgresql database running in a linux system.
i get libpg.dll and PgOleDb.dll.
that's enough for me to do so? or could you tell me how?
i was successful to install Npgsql and with it i can connect the local machine .
but when i try a remote connection i got some problem:
first ,the connection was rejected by the remote host.
then, i edited the pg_hba.conf and postgresql.conf file.the error was change:
FATAL:F0000:missing or erroneous pg_hba.conf
anybody know what's the problem ?
but when i try a remote connection i got some problem:
first ,the connection was rejected by the remote host.
then, i edited the pg_hba.conf and postgresql.conf file.the error was change:
FATAL:F0000:missing or erroneous pg_hba.conf
anybody know what's the problem ?
2007/7/24, Eddy D. Sanchez < eddy.sanchez@gmail.com>:
I use Npgsql for client/server applicationsyou can view the manual at: http://npgsql.projects.postgresql.org/docs/manual/UserManual.htmOn 23 Jul 2007, at 22:47, longlong wrote:hi,all
i have a local system with windows xp.
i want to use c# to connect with a postgresql database running in a linux system.
i get libpg.dll and PgOleDb.dll.
that's enough for me to do so? or could you tell me how?
longlong wrote: > i was successful to install Npgsql and with it i can connect the local > machine . > but when i try a remote connection i got some problem: > > first ,the connection was rejected by the remote host. > then, i edited the pg_hba.conf and postgresql.conf file.the error was > change: > FATAL:F0000:missing or erroneous pg_hba.conf > > anybody know what's the problem ? Your pg_hba.conf isn't set up properly. What did you change it to? Where are you connecting from (ie the ip that's trying to connect) ? -- Postgresql & php tutorials http://www.designmagick.com/