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 E8F0852B3C for ; Mon, 1 Aug 2005 10:25:45 -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 03357-02 for ; Mon, 1 Aug 2005 13:25:33 +0000 (GMT) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by svr1.postgresql.org (Postfix) with ESMTP id AD59352896 for ; Mon, 1 Aug 2005 10:25:32 -0300 (ADT) Received: from jfradkin ([66.15.127.235]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IKJ003W3PANQE81@vms048.mailsrvcs.net> for pgsql-odbc@postgresql.org; Mon, 01 Aug 2005 08:25:36 -0500 (CDT) Date: Mon, 01 Aug 2005 09:27:09 -0400 From: "Joel Fradkin" Subject: Re: IIS Postgres ASP ADO - Problem In-reply-to: <42ED3821.5080904@catch22.com> To: "'James Dornan'" Cc: Message-id: <000b01c5969c$b86330a0$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.863 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: ** X-Archive-Number: 200508/1 X-Sequence-Number: 5640 James, The odbc is not working well for me (I can connect but get intermittent issues of the IIS server locking up in regards to connectivity). My understanding is the snapshot version is the best odbc out at this = time. Also can you connect via pgadmin (IE have the hba and config files set = to allow external connections)? My conection is not using dsn, but I did get dsn to work in testing. My dsnless string is=20 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=3D8190;Debug=3D0;CommLog=3D0;Op= timizer=3D1;K sqo=3D1;UseDeclareFetch=3D0;TextAsLongVarchar=3D1;UnknownsAsLongVarchar=3D= 0;BoolsAsC har=3D1;Parse=3D0;CancelAsFreeStmt=3D0;ExtraSysTablePrefixes=3Ddd_;LFConv= ersion=3D1;Up datableCursors=3D1;DisallowPremature=3D0;TrueIsMinus1=3D0;BI=3D0;ByteaAsL= ongVarBinar y=3D0;UseServerSidePrepare=3D0" My test using dsn used Session("StringConn") =3D"DSN=3Dpostgresql;" & _ "UID=3Dpostgres;" & _ "PWD=3D;" & _ "Database=3Dwazuni;" asp code to use connection is : dim Arec, Acmd, SQL ,AConn set Arec =3D server.CreateObject("ADODB.Recordset") Set AConn =3D Server.CreateObject("ADODB.CONNECTION") set Acmd =3D server.CreateObject("ADODB.Command") =20 AConn.ConnectionTimeOut=3D30 AConn.commandtimeout=3D30 AConn.Open Session("StringConn") For .net I use the npgsql .net objects. Hope this helps you. Joel Fradkin =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 = 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