pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED
5+ messages / 2 participants
[nested] [flat]
* PostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED
@ 2002-09-05 19:18 Chris Gamache <cgg007@yahoo.com>
0 siblings, 1 reply; 5+ messages in thread
From: Chris Gamache @ 2002-09-05 19:18 UTC (permalink / raw)
To: pgsql-odbc
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
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* PostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED
@ 2002-09-10 16:32 Chris Gamache <cgg007@yahoo.com>
parent: Chris Gamache <cgg007@yahoo.com>
0 siblings, 1 reply; 5+ messages in thread
From: Chris Gamache @ 2002-09-10 16:32 UTC (permalink / raw)
To: pgsql-odbc
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL+ (Beta) and Active Server Pages with
@ 2002-09-12 10:07 Hiroshi Inoue <Inoue@tpf.co.jp>
parent: Chris Gamache <cgg007@yahoo.com>
0 siblings, 1 reply; 5+ messages in thread
From: Hiroshi Inoue @ 2002-09-12 10:07 UTC (permalink / raw)
To: cgg007@yahoo.com; +Cc: pgsql-odbc
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/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED
@ 2002-09-12 16:44 Chris Gamache <cgg007@yahoo.com>
parent: Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 0 replies; 5+ messages in thread
From: Chris Gamache @ 2002-09-12 16:44 UTC (permalink / raw)
To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc
Perhaps, but the MS Access ODBC Driver would run in an MTS transaction, even
though there is no transaction support in access.
I use ODBC like I drive my car. I put in the key, turn it, and it just works.
What could I do to get under the hood and find out what this mysterious "Set"
thing might require to function properly?
I don't care to even have the PostgreSQL transaction auto-roll-back when the
MTS Transaction fails. I need the transaction support for the larger operation
of which the database transactions are a small part.
CG
--- Hiroshi Inoue <Inoue@tpf.co.jp> wrote:
>
> 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/
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED
@ 2002-10-15 17:24 Chris Gamache <cgg007@yahoo.com>
0 siblings, 0 replies; 5+ messages in thread
From: Chris Gamache @ 2002-10-15 17:24 UTC (permalink / raw)
To: pgsql-odbc; inoue@postgresql.org
A person by the name of Eric was trying to encapsulate an ODBC connection in a
COM+ object (see thread "psqlODBC driver and COM+"
http://groups.google.com/groups?q=%22Unknown+connect+option+(Set)%22&hl=en&lr=lang_en&ie...
)
He did a trace and was on to something with SQL_ATTR_ENLIST_IN_DTC. Of course
we know that PostgreSQL doesn't support Distributed Transactions... Would it be
possible to just plug the hole up and make that staticly set to not enlist the
connection in DTC? I think that would get us one step closer to being able to
plug PostgreSQL into COM+ (be it MTS or whatever) ...
I'm nearly positive that MTS (and COM+ for that matter) _does_ provide a way to
work with non-distributed transactions. Why else would MS Access and other
inflexible database technologies work within MTS?
CG
--- Hiroshi Inoue <Inoue@tpf.co.jp> wrote:
>
> 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/
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2002-10-15 17:24 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-05 19:18 PostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED Chris Gamache <cgg007@yahoo.com>
2002-09-10 16:32 ` Chris Gamache <cgg007@yahoo.com>
2002-09-12 10:07 ` Re: PostgreSQL+ (Beta) and Active Server Pages with Hiroshi Inoue <Inoue@tpf.co.jp>
2002-09-12 16:44 ` Chris Gamache <cgg007@yahoo.com>
2002-10-15 17:24 Re: PostgreSQL+ (Beta) and Active Server Pages with @TRANSACTION=REQUIRED Chris Gamache <cgg007@yahoo.com>
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