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 9E44F3A194D for ; Fri, 31 Dec 2004 07:46:04 +0000 (GMT) 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 60869-08 for ; Fri, 31 Dec 2004 07:45:46 +0000 (GMT) Received: from latenight.fiasco.org.il (latenight.fiasco.org.il [192.117.122.39]) by svr1.postgresql.org (Postfix) with SMTP id 4CB863A19BA for ; Fri, 31 Dec 2004 07:44:24 +0000 (GMT) Received: (qmail 32632 invoked from network); 31 Dec 2004 07:44:20 -0000 X-Scanned-By: AMaViS-ng at latenight.fiasco.org.il Received: from unknown (HELO ?172.16.19.2?) (192.117.105.82) by latenight.fiasco.org.il with SMTP; 31 Dec 2004 07:44:19 -0000 Message-ID: <41D50352.4040100@shemesh.biz> Date: Fri, 31 Dec 2004 09:44:18 +0200 From: Shachar Shemesh Organization: Lingnu Open Source Consulting ltd. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 X-Accept-Language: en MIME-Version: 1.0 To: Atanas Atanasov Cc: ODBC PostgreSQL Subject: Re: Writing a new driver References: <2088005755.1104276650100.JavaMail.nobody@app3.ni.bg> In-Reply-To: <2088005755.1104276650100.JavaMail.nobody@app3.ni.bg> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.031 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/60 X-Sequence-Number: 4794 Atanas Atanasov wrote: > Hello mates, > > I am trying to write a simple ODBC driver for Windows. It can also be > OLE DB or DAO driver but the final aim is to connect to a non-standard > DBMS normally through ADO, DAO, OLE DB or ODBC etc. I tried to find > any documentation o nline but it is very little. There are a few SDKs > but they are not free so I cannot use any of them. > > In case any of you, who have developped the psqlODBC driver, know any > source, have any tutorial, or can explain how can someone can write a > simple read (and maybe after this read/write) driver please send it to > me by email. > > I imagine it will be sort of a program implementing a standart > interface which o n its back end will interact customly with a DBMS, > files etc. > > Any help will be appreciated. > > Regards, > > Atanas Atanasov > Hi Atanas, First of all, the official documentation can be found online at http://msdn.microsoft.com. Documentation for ODBC is available at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/dasdkodbcoverview.asp, and for OLE DB at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/oledb/htm/dasdkoledboverview.asp. Our of curiosity, what development tools were you thinking of using? If you were going to use Visual Studio, the SDK comes as part of the package. The same is true for most other packages as well. Even MinGW, which is free (both speech and beer). Depending on the use you need for this driver, you can start off from one of the existing drivers. You can use psqlODBC, PgOleDb, or any other open source ODBC or OLE DB driver out there. Please do pay attention to the license, however. If your driver needs to be closed source, don't use either one of the two I mentioned, as their license does not allow such use. In addition to that, in case this is relevant to you, my company does software consulting. We developed the PostgreSQL OLE DB provider (PgOleDb). Feel free to contact me privately for a price quote on a similar project. Hope this helps, Shachar -- Shachar Shemesh Lingnu Open Source Consulting ltd. http://www.lingnu.com/