X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B760FD1C92A for ; Fri, 1 Aug 2003 15:56:13 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 53863-03 for ; Fri, 1 Aug 2003 12:54:34 -0300 (ADT) Received: from ecintweb.eldocomp.com (ecintweb.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id 40CE2D1C911 for ; Fri, 1 Aug 2003 12:55:39 -0300 (ADT) Received: by ecintweb.eldocomp.com with XWall v3.27 ; Fri, 1 Aug 2003 08:55:13 -0700 From: Andrew Ayers Cc: "pgsql-odbc@postgresql.org" Subject: Re: ODBC problems with Visual Basic 6, but in Excel it works Date: Fri, 1 Aug 2003 08:55:37 -0700 X-Assembled-By: XWall v3.27 Message-ID: <3F2A8D79.3010602@eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/3 X-Sequence-Number: 3123 Steffen Brodowski wrote: > Hello programmers, >=20=20 > I try to connect to a postgres database with ODBC and Visual Basic 6.0. >=20=20 > The Postgres ODBC driver is 7.03.xx and it runs with Access, Excel and=20 > MS-Query without any problems by using a DSN-file. >=20=20 > In VB 6.0 I'm using MS-ADO (ADO 2.7) and the same DSN-file an the=20 > following error occurs: >=20=20 > "The provider can not be found! Perhaps it is not installed correctly." >=20=20 > Why it is running with Excel and Access? I think it's because Access and= =20 > Excel/MS-Query uses DAO and not ADO?! >=20=20 > Can anybody tell me, how to use MS-ADO and Postgres ODBC? Whats wrong? Steffen, Can you give us some sample source code showing everything you are doing=20 up to the point where it fails (sounds like it is failing on the ADO=20 open method)? As far as DAO vs. ADO regarding ODBC for PG - I have had the best luck=20 using ADO vs DAO. When I was using DAO, I kept running into problems=20 with regards to TEXT fields (which I had converted from my Access DB=20 Memo fields). Switching over to ADO fixed my issues. So, I would stick=20 with ADO. Andrew Ayers Phoenix, Arizona -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.