PC Review


Reply
Thread Tools Rate Thread

Connecting to PostgreSQL (over ODBC.NET)

 
 
C. Vollmer
Guest
Posts: n/a
 
      18th Jul 2003
Hi,

I just worked two days trying to connect to a PostgreSQL. So I thought
maybe someone is interested in the results.
At the moment I'm experimenting with the ProviderFactory from Mono. So I
tried to use it to connect to our PostgreSQL. The first problem was,
that I couldn't find a good .NET Data Provider. ByteFX
(http://sourceforge.net/projects/mysqlnet/) doesn't have a
ConnectionString (which is needed for ProviderFactory and public
property of IDbConnection) and Npgsql
(http://gborg.postgresql.org/project/...rojdisplay.php) is still in
a beta stadium and not ready to get imported in GAC (I'm glad if someone
can help me with an easy solution). So I switched to ODBC.NET. First I
didn't understand that I have to include the server in the
ConnectionString (eg:
"Driver={PostgreSQL};dsn=MyDSN;database=MyDB;uid=sa;pwd=sa;server=MyServer").
Without the server you always get "ODBCException ERROR - No
information", which gives you not very much information. ;-) Then I had
a lot of problems with the PostgreSQL ODBC (7.03.01.00). IIS crashed
every time. But when I switched back to version 7.02.00.05 everything
worked fine.
Comments are welcome.

Christoph

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC + Postgresql ....driver install but no displayed Wodka40[Google] Windows XP Configuration 1 31st Jul 2009 05:43 PM
Using stored procedures in C# for postgreSQL using ODBC nishi.hirve@gmail.com Microsoft ADO .NET 1 1st Jul 2006 08:38 AM
Using stored procedures in C# for postgreSQL using ODBC nishi.hirve@gmail.com Microsoft VC .NET 1 30th Jun 2006 08:08 AM
Connecting via ODBC =?Utf-8?B?QnJpYW4=?= Microsoft Access 0 17th May 2005 12:11 AM
ODBC link to PostgreSQL Zlatko Matiæ Microsoft Access 0 5th Apr 2005 08:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:51 PM.