pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Gamache <cgg007@yahoo.com>
To: pgsql-odbc@postgresql.org
Subject: PostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED
Date: Tue, 10 Sep 2002 09:32:06 -0700 (PDT)
Message-ID: <20020910163206.9398.qmail@web13807.mail.yahoo.com> (raw)
In-Reply-To: <20020905191831.40236.qmail@web13805.mail.yahoo.com>

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?

CG


__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute



view thread (5+ messages)  latest in thread

Message-ID: <20020910163206.9398.qmail@web13807.mail.yahoo.com>
Permalink:  ../20020910163206.9398.qmail@web13807.mail.yahoo.com/
Also on:    postgresql.org/message-id/20020910163206.9398.qmail@web13807.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: cgg007@yahoo.com
  Subject: Re: PostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED
  In-Reply-To: <20020910163206.9398.qmail@web13807.mail.yahoo.com>
  References: <20020905191831.40236.qmail@web13805.mail.yahoo.com> <20020910163206.9398.qmail@web13807.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox