rolling back transactions with MS SQL Server?
- From: "ddog" <wgblackmon@xxxxxxxxx>
- Date: 20 Feb 2007 10:42:32 -0800
I'm unable to roll back transactions using MS SQL Server. I'm
connecting to the database with the following parameters:
jdbc:microsoft:sqlserver://
GX520-4HSMFC1:1433;databaseName=RECON;SelectMethod=cursor
The code that creates the connection is:
connection = connManager.get(Thread.currentThread().getName());
if(connection == null){
connection = createNewConnection();
connection.setAutoCommit(false);
}
When a connection is created and records are written, the following
statement fails to rollback the new records:
connection.rollback();
I have a feeling the problem lies in the SelectMethod=cursor setting.
Is there a way around this or am I missing something?
.
- Follow-Ups:
- Re: rolling back transactions with MS SQL Server?
- From: joeNOSPAM@xxxxxxx
- Re: rolling back transactions with MS SQL Server?
- Prev by Date: attn: ode - highly marvelous nntp access - bop vucge - (1/1)
- Next by Date: Re: rolling back transactions with MS SQL Server?
- Previous by thread: attn: ode - highly marvelous nntp access - bop vucge - (1/1)
- Next by thread: Re: rolling back transactions with MS SQL Server?
- Index(es):
Relevant Pages
|