Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Btrieve > Transactions an...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 907 of 1008
Post > Topic >>

Transactions and SQLSetConnectOption SQL_AUTOCOMMIT

by "Bill" <no@[EMAIL PROTECTED] > Feb 21, 2007 at 05:44 PM

In the version 9 SQL Engine Reference the description of START
TRANSACTION on page 203 states the following.

"Within the ODBC standard, SQLSetConnectOption is used to specify
whether each statement is in its own transaction or the application
groups statements within a transaction.

Each statement is in its own transaction if SQLSetConnectOption is
called specifying the option SQL_AUTOCOMMIT and the value
SQL_AUTOCOMMIT_ON (this is the default). This usage means that a
transaction is started at the beginning of executing a statement and
the transaction is either automatically committed, if no error occurs,
or roled back, if error occurred, upon completion of statement
execution.

The application can group statements in a transaction if
SQLSetConnectOption is called specifying the option SQL_AUTOCOMMIT and
the value SQL_AUTOCOMMIT_OFF value."

I cannot find any way to set the SQL_AUTOCOMMIT option using the ODBC
data manager in Windows XP.

I am connecting to Pervasive 9.5 using ADO and the Pervasive ODBC
driver. I need to be able to start, commit and rollback transactions
using the ADO connection commands. Can someone tell me how to configure
the connection to allow this? Thanks.

-- 
..Bill.




 2 Posts in Topic:
Transactions and SQLSetConnectOption SQL_AUTOCOMMIT
"Bill" <no@[  2007-02-21 17:44:15 
Re: Transactions and SQLSetConnectOption SQL_AUTOCOMMIT
"Bill Bach" <  2007-02-23 11:01:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 23:09:24 CDT 2008.