Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 082769F9386 for ; Mon, 11 Dec 2006 01:45:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 85087-04 for ; Mon, 11 Dec 2006 01:45:33 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nz-out-0102.google.com (nz-out-0506.google.com [64.233.162.235]) by postgresql.org (Postfix) with ESMTP id 2488D9F9357 for ; Mon, 11 Dec 2006 01:45:32 -0400 (AST) Received: by nz-out-0102.google.com with SMTP id i11so712651nzh for ; Sun, 10 Dec 2006 21:45:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:reply-to:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:from; b=Xc5p16Dr/6Id+oqKw1Pn9mtnMMzfYPin4CfgJ/DWweX5kFFm/fxDsj9d5kBFeoWPdodSgKAZBrbcgua0kuqcChRRf9f8e2197TfQSWUWo3+i96wRFI0AOcKkOAK8YzCMAsYR7YEm+YVOBUXhIbt7vZ+IQ81TWCWMmHcTBNMj7yU= Received: by 10.65.43.5 with SMTP id v5mr10160589qbj.1165815932125; Sun, 10 Dec 2006 21:45:32 -0800 (PST) Received: from ?192.168.0.101? ( [24.8.184.56]) by mx.google.com with ESMTP id f16sm6043638qba.2006.12.10.21.45.30; Sun, 10 Dec 2006 21:45:31 -0800 (PST) Message-ID: <457CF079.7080906@hydrosphere.com> Date: Sun, 10 Dec 2006 22:45:29 -0700 Reply-To: kkc@hydrosphere.com Organization: Hydrosphere Resource Consultants, Inc. User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: BEST odbc driver for windows MS Access References: <332921.56034.qm@web31805.mail.mud.yahoo.com> In-Reply-To: <332921.56034.qm@web31805.mail.mud.yahoo.com> Content-Type: multipart/alternative; boundary="------------090807000007090108060803" From: "K. Kelly Close" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/22 X-Sequence-Number: 8469 This is a multi-part message in MIME format. --------------090807000007090108060803 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit >> And if >> not, will I have to go thru MSQuery to get to pgsql via ODBC? I hope not... >> > > I am not to sure how to answer your question. What functionality does MSQquery give you that you > get some other way with OLEDB. > > This is what I'm not actually sure of, but some more research I've done tonight seems to indicate that the method I've used accessing an OLEDB source entirely from within code (which is what I'm trying to do) may be completely adaptable to an ODBC source. Using SQL Server as an example, I can connect from Excel VBA using code that looks something like this: oConn.Open "Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"00) I was hoping I could replace the "sqloledb" provider with the proper reference for the postgresql oledb provider and have a working connection! I now find that I can theoretically also connect to SQLServer thru ODBC using a connection string in VBa that looks something like: oConn.Open "Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;" So again, if I install the PostgreSQL ODBC driver and put it in there in place of {SQL Server}, I should have a working connection I can pass SQL thru from code...right? :-) That's what I'm going for anyway. I am really just looking to do pretty simple querying and writing back to the database with this. If ANYONE out there has any experience with this, from any MS application using VBA, I would appreciate hearing from them...and any references to other message lists are welcome too - thanks for the pointer to the odbcng list, Richard. ~Kelly >> And if anyone has thoughts or >> experience on OLEDB vs. ODBC for connecting to pgsql from Microsoft >> software, I'd love to hear of them! >> > > My opionion of OLEDB for postgresql is that it is broken and certainly not more stable in this > case. Even worse, there doesn't seem to be much support for the oledb project as compared with > the odbc projects. If you find that a bug keeps you from completing your project, there aren't > very many places to turn. > > from the following link: > > http://archives.postgresql.org/pgsql-odbc/2006-10/msg00009.php > > you see that an old version of ODBC was able to handle a load of 600 transactions requests per > second. The Command Prompt odbc-ng appears to almost double this throughput, however it breaks > when I try to use it. This should be expected since this driver is still released as being under > the "public test mode". > > If you are enterested in using the odbc-ng driver you could use the following mailing list for > help: > > http://lists.commandprompt.com/mailman/listinfo/odbcng > > Regards, > > Richard Broersma jr. > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > -- ************************************** Kelly Close Database and GIS Specialist Hydrosphere Resource Consultants, Inc (303) 443-7839 (303) 442-0616 (fax) kkc@hydrosphere.com Visit our web site! http://www.hydrosphere.com --------------090807000007090108060803 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
And if 
not, will I have to go thru MSQuery to get to pgsql via ODBC?  I hope not...
    

I am not to sure how to answer your question.  What functionality does MSQquery give you that you
get some other way with OLEDB.

  
This is what I'm not actually sure of, but some more research I've done tonight seems to indicate that the method I've used accessing an OLEDB source entirely from within code (which is what I'm trying to do) may be completely adaptable to an ODBC source.

Using SQL Server as an example, I can connect from Excel VBA using code that looks something like this:
oConn.Open "Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"00)

I was hoping I could replace the "sqloledb" provider with the proper reference for the postgresql oledb provider and have a working connection!

I now find that I can theoretically also connect to SQLServer thru ODBC using a connection string in VBa that looks something like:
oConn.Open "Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;"

So again, if I install the PostgreSQL ODBC driver and put it in there in place of {SQL Server}, I should have a working connection I can pass SQL thru from code...right?  :-)  That's what I'm going for anyway.  I am really just looking to do pretty simple querying and writing back to the database with this.  If ANYONE out there has any experience with this, from any MS application using VBA, I would appreciate hearing from them...and any references to other message lists are welcome too - thanks for the pointer to the odbcng list, Richard.

~Kelly

  
And if anyone has thoughts or 
experience on OLEDB vs. ODBC for connecting to pgsql from Microsoft 
software, I'd love to hear of them!
    

My opionion of OLEDB for postgresql is that it is broken and certainly not more stable in this
case.  Even worse, there doesn't seem to be much support for the oledb project as compared with
the odbc projects.  If you find that a bug keeps you from completing your project, there aren't
very many places to turn.

from the following link:

http://archives.postgresql.org/pgsql-odbc/2006-10/msg00009.php

you see that an old version of ODBC was able to handle a load of 600 transactions requests per
second.  The Command Prompt odbc-ng appears to almost double this throughput, however it breaks
when I try to use it.  This should be expected since this driver is still released as being under
the "public test mode".

If you are enterested in using the odbc-ng driver you could use the following mailing list for
help:

http://lists.commandprompt.com/mailman/listinfo/odbcng

Regards,

Richard Broersma jr.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org
  

-- 
**************************************
Kelly Close
Database and GIS Specialist
Hydrosphere Resource Consultants, Inc
(303) 443-7839
(303) 442-0616 (fax)
kkc@hydrosphere.com

Visit our web site!
http://www.hydrosphere.com
--------------090807000007090108060803--