X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 13B93D1B1B3 for ; Wed, 21 Jul 2004 16:02:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00507-05 for ; Wed, 21 Jul 2004 19:01:53 +0000 (GMT) Received: from gpdnet.co.uk (gpdnet.plus.com [212.56.100.243]) by svr1.postgresql.org (Postfix) with ESMTP id 8D513D1B17B for ; Wed, 21 Jul 2004 16:01:50 -0300 (ADT) Received: from gary (unverified [192.168.1.2]) by gpdnet.co.uk (SurgeMail 2.0g2) with ESMTP id 646 for ; Wed, 21 Jul 2004 21:04:23 +0100 From: "Gary Doades" To: pgsql-odbc@postgresql.org Date: Wed, 21 Jul 2004 20:01:54 +0100 MIME-Version: 1.0 Subject: Re: From ODBC to .NET provider Message-ID: <40FECBB2.20639.23F16165@localhost> In-reply-to: <1122.64.160.165.191.1090432402.fusewebmail-59475@www.fusemail.com> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: Multipart/Alternative; boundary="Alt-Boundary-18278.603021669" X-Server: High Performance Mail Server - http://surgemail.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.6 tagged_above=0.0 required=5.0 tests=HTML_30_40, HTML_FONTCOLOR_RED, HTML_FONTCOLOR_UNSAFE, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: * X-Archive-Number: 200407/125 X-Sequence-Number: 4258 --Alt-Boundary-18278.603021669 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body On 21 Jul 2004 at 12:53, Jon Asher wrote: > Has anyone moved from the ODBC driver to a native .NET provider? Any > recommendations on which Postgres .NET provider to go with? There are a > couple commercial versions and the open soruce one.... > > Jon > Yes, I've done some work with .NET (C#) and PostgreSQL. I started using the ODBC driver which works pretty well. Just one bug with calling stored procedures with int2 parameters. The driver doesn't typecast the int2 parameters and so can't find the function. Otherwise no real problems. I moved to using Npgsql native driver for mainly performance reasons. Unfortunately I have to maintain a codebase that supports both postgres and MS SQL Server. To minimise the code changes I have gone back to ODBC. Npgsql seems to perform very well and I never had any trouble using it. I tend to keep my ADO.NET stuff fairly simple though. Connections, Commands (both text and stored procedures), Datareaders. I don't use datasets so I can't tell you about this area and Npgsql. I have tried the PostgreSQL Direct driver from CoreLabs as I wanted to use their Unidriver to maintain compatibility with SQLServer, but it is very buggy at the moment. I would say that if you need to go native, then use the open source one (Npgsql) Cheers, Gary. --Alt-Boundary-18278.603021669 Content-type: text/html; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body
On 21 Jul 2004 at 12:53, Jon Asher wrote:

> Has anyone moved from the ODBC driver to a native .NET provider?  Any
> recommendations on which Postgres .NET provider to go with?  There are a
> couple commercial versions and the open soruce one....
>
> Jon
>
Yes, I've done some work with .NET (C#) and PostgreSQL. I started using the ODBC driver which works pretty well. Just one bug with calling stored procedures with int2 parameters. The driver doesn't typecast the int2 parameters and so can't find the function. Otherwise no real problems.

I moved to using Npgsql native driver for mainly performance reasons. Unfortunately I have to maintain a codebase that supports both postgres and MS SQL Server. To minimise the code changes I have gone back to ODBC.

Npgsql seems to perform very well and I never had any trouble using it. I tend to keep my ADO.NET stuff fairly simple though. Connections, Commands (both text and stored procedures), Datareaders. I don't use datasets so I can't tell you about this area and Npgsql.

I have tried the PostgreSQL Direct driver from CoreLabs as I wanted to use their Unidriver to maintain compatibility with SQLServer, but it is very buggy at the moment.

I would say that if you need to go native, then use the open source one (Npgsql)

Cheers,
Gary.
--Alt-Boundary-18278.603021669--