Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 74C08475914 for ; Thu, 12 Sep 2002 06:06:48 -0400 (EDT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 8264E47617F for ; Thu, 12 Sep 2002 06:06:46 -0400 (EDT) Received: (qmail 10241 invoked from network); 12 Sep 2002 10:06:47 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 12 Sep 2002 10:06:47 -0000 Received: from tpf.co.jp ([126.0.1.64]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id TAA06700; Thu, 12 Sep 2002 19:06:46 +0900 (JST) Message-ID: <3D806751.F6BAB81D@tpf.co.jp> Date: Thu, 12 Sep 2002 19:07:13 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: cgg007@yahoo.com Cc: pgsql-odbc@postgresql.org Subject: Re: PostgreSQL+ (Beta) and Active Server Pages with References: <20020910163206.9398.qmail@web13807.mail.yahoo.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/45 X-Sequence-Number: 2016 Chris Gamache wrote: > > Anyone ever tried this successfully? > > ...from something.asp > > <% @TRANSACTION=REQUIRED LANGUAGE=VBSCRIPT %> > <% > response.buffer = true > connstr = "Provider=MSDASQL.1;Persist Security Info=False;Extended > Properties=""DRIVER={PostgreSQL+ > (Beta)};DATABASE=somedb;SERVER=db.something.com;PORT=5432;UID=someuser;PWD=somepwd;ReadOnly=0;Protocol=6.4;FakeOidIndex=0;ShowOidColumn=0;RowVersioning=0;ShowSystemTables=0;ConnSettings=;Fetch=100;Socket=4096;UnknownSizes=0;MaxVarcharSize=254;MaxLongVarcharSize=8190;Debug=0;CommLog=0;Optimizer=1;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;BoolsAsChar=1;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;;LFConversion=1;UpdatableCursors=1;DisallowPremature=0;TrueIsMinus1=0""" > > set conn = server.createobject("adodb.connection") > conn.open connstr > sql = "select * from some_table where some_column = 'something';" > set rs = conn.execute(sql) > %> > > I then get... > > Microsoft OLE DB Provider for ODBC Drivers error '8004d00a' > > Unknown connect option (Set) > > something.asp, line 7 > > ... > > Running the script outside of an MTS transaction works fine. It crashes inside. > I was hoping that PostgreSQL+ would address this... Any ideas? Maybe MTS requires Distributed transaction support but PostgreSQL(and of cource psqlodbc driver) doesn't support it. I'm not sure if MTS provides the option to work with non- distributed system. regards, Hiroshi Inoue http://w2422.nsk.ne.jp/~inoue/