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 82BDA52C57 for ; Mon, 1 Aug 2005 17:43:02 -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 38283-10 for ; Mon, 1 Aug 2005 20:42:56 +0000 (GMT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by svr1.postgresql.org (Postfix) with ESMTP id A319452C55 for ; Mon, 1 Aug 2005 17:42:55 -0300 (ADT) Received: from jfradkin ([66.15.127.235]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IKK005839JKY491@vms040.mailsrvcs.net> for pgsql-odbc@postgresql.org; Mon, 01 Aug 2005 15:42:57 -0500 (CDT) Date: Mon, 01 Aug 2005 16:44:30 -0400 From: "Joel Fradkin" Subject: Re: IIS Postgres ASP ADO - Problem In-reply-to: <42EE824A.6000505@catch22.com> To: "'James Dornan'" Cc: Message-id: <002c01c596d9$d1857060$797ba8c0@jfradkin> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.865 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: ** X-Archive-Number: 200508/11 X-Sequence-Number: 5650 I have not tried 2003 with 8.0.3 driver, but I did use 2003 with the 7.4 driver, so you may want to grab that driver just to see if there is any difference. Only other idea I might ask is how recent is your mdac stuff. Not sure it makes a difference, but might if adding server and trying = the 7.4 odbc drive don't help, but I am confused because your getting the = error before it is trying to use odbc, its erroring on the creation of the = object. What did the creation look like for the MDB? I use=20 Set cConn =3D Server.CreateObject("ADODB.CONNECTION") Not sure if server. Makes any difference? At this point I don't think it knows anything about the connection its = just creating an object. It does not need the connection info until it is opened. Again I use this string for the connection (not dsn). Session("StringConn") =3D "DRIVER=3D{PostgreSQL};DATABASE=3Dwazagua;SERVER=3D192.168.123.121;PORT=3D= 5432;UID=3Dp ostgres;PWD=3D;ReadOnly=3D0;Protocol=3D6.4;FakeOidIndex=3D0;ShowOidColumn= =3D0;RowVersi oning=3D0;ShowSystemTables=3D0;ConnSettings=3D;Fetch=3D100;Socket=3D4096;= UnknownSizes=3D 0;MaxVarcharSize=3D254;MaxLongVarcharSize=3D16280;Debug=3D0;CommLog=3D0;O= ptimizer=3D1; Ksqo=3D1;UseDeclareFetch=3D0;TextAsLongVarchar=3D1;UnknownsAsLongVarchar=3D= 0;BoolsAs Char=3D1;Parse=3D0;CancelAsFreeStmt=3D0;ExtraSysTablePrefixes=3Ddd_;LFCon= version=3D1;U pdatableCursors=3D1;DisallowPremature=3D0;TrueIsMinus1=3D0;BI=3D0;ByteaAs= LongVarBina ry=3D0;UseServerSidePrepare=3D0" And I open it using=20 cConn.Open Session("StringConn") Joel Fradkin =20 -----Original Message----- From: James Dornan [mailto:james@catch22.com]=20 Sent: Monday, August 01, 2005 4:13 PM To: Joel Fradkin Subject: Re: [SPAM Score: 3.1] RE: IIS Postgres ASP ADO - Problem I'm still in the same boat. ODBC does seem to work, but does not load when accessing from an ASP page under IIS 6. I'm trying to quickly convert an application from using MDB files to Postgres. I wrote a quick little VB script and it was able to access Postgres without complaint. But the ASP web pages are not able to load the Postgres ODBC drive. ASP can use ODBC to access MDB files. I'm not sure what part of IIS 6 prevents this. Sadly if I fail in this the company will not continue down the path of open source. Here is the error message I get. Microsoft OLE DB Provider for ODBC Drivers error '80004005' Specified driver could not be loaded due to system error 998=20 (PostgreSQL-libpq). /test.asp, line 10 Here is line 10 Set cn =3D CreateObject("ADODB.Connection") =20 Joel Fradkin wrote: >The stuff I send help you? >If not I did get help switching from 7.4 to 8.0 >Basically it told me to look in registry for where it points for the = odbc >driver. >I had issues myself, eventually I removed everything and installed from = the >odbc download (making sure there was no reference in the registry and = no >psqlodbc.dll on the system. I then installed from the download menu off >postgres.org site. It installed and worked. The I could install = postgres >8.0.3 (not using the odbc from it). Finally I ended up building my own >psqlodbc.dll using the csv, but I am still using the 7.4 drivers for my >production as my data base is SQLASCII with French chars in it and I = have to >get it converted to Unicode to use the new drivers. >I have got Unicode databases and the latest drivers in test = environments. >I can appreciate the frustration, I lost the odbc when I tried a = commercial >driver for whatever reason my odbc got messed up and I spent most of = the day >goofing around until the complete uninstall and just loading odbc = seemed to >get working again. I had postgres on a different computer as well so I could >see when the odbc started to work again, plus I already had working >connections etc.=20 > >What errors you getting? > >Joel Fradkin >=20 >Wazagua, Inc. >2520 Trailmate Dr >Sarasota, Florida 34243 >Tel. 941-753-7111 ext 305 >=20 >jfradkin@wazagua.com >www.wazagua.com >Powered by Wazagua >Providing you with the latest Web-based technology & advanced tools. >C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc > This email message is for the use of the intended recipient(s) and may >contain confidential and privileged information. Any unauthorized = review, >use, disclosure or distribution is prohibited. If you are not the = intended >recipient, please contact the sender by reply email and delete and = destroy >all copies of the original message, including attachments. >=20 > >=20 > >-----Original Message----- >From: James Dornan [mailto:james@catch22.com]=20 >Sent: Sunday, July 31, 2005 4:44 PM >To: jfradkin@wazagua.com >Subject: IIS Postgres ASP ADO - Problem > > > I noticed more than a few post from you about trying to get Postgres=20 >working with ODBC. >I'm hoping that maybe you would share some of that information. I am=20 >running IIS under >windos 2003 server, and the latest(8.0.3) Postgres server on the same=20 >machine. I cannot >connect no matter what I do. I have tried everything. > > The funny part is that I'm not new to ODBC, or windows. I've worked=20 >with windows all >the time, but just can't figure this one out. I've tried using a=20 >connection string, a DSN, >reinstalling, IIS, Postgres, ODBC drivers, MDAC, Jet, and so on. I = still=20 >have the same problem. >The odbc drive and it's dependant DDLs are in the path. The permisions=20 >are wide open >(for testing this specific problem). > > Is there any insight you could shed on the dark world of windows and=20 >ODBC, where feed- >back is rare. > > Thanks for any help you can provide. > >-- James > > > =20 >