Click to See Complete Forum and Search --> : catastrophic failure with transactions


vin
July 28th, 2000, 08:20 AM
Hi, I hava a connection to SQL server - cnn
In a given sublime momement i do the
following

I use VB

cnn.BeginTransaction

//i do some stuff here

cnn1.CommitTransaction

From this moment on, the first try to do something
with some table from the connection i get
the message "Catastrophich failure".

Can anyone tell me how to manage with this transactions?
Thanks!

vin
July 31st, 2000, 02:44 AM
Hi, It's me answering my own question.

I really need to do requiery after
committrans or rollback trans.

Thanks, myself, you were very glad to help myself.

August 3rd, 2000, 04:56 AM
Dear friend,
-------------------
cnn.BeginTransaction

//i do some stuff here

cnn1.CommitTransaction

------------------
You can not use transactions like this in VB.U can use in following way.try it out

cnn.BeginTransaction
// some code here
cnn1.BeginTransaction
// some code here
cnn1.CommitTransaction
// some code here
cnn.CommitTransaction

Cimperiali
April 24th, 2001, 11:43 AM
...And yuor solution is interesting for me too, so thanks for sharing.
Cesare Imperiali

Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.