Hi,
Using VB 6, SQL Server 7.0 (no SP), ADO 2.5
I need to update into 2 databases : DB_1 and DB_2. Coz this process is critical, I used the Transaction method.
The code goes like below :
'Begin transaction
DB_1.BeginTrans
DB_2.BeginTrans
'processing something...
'See if everything is OK
If bValid Then
DB_1.CommitTrans
DB_2.CommitTrans
Else
DB_1.RollbackTrans
DB_2.RollbackTrans
End If
The problem:
-. Sometimes it update NOTHING on table at the second database (DB_2)
-. Or, it updates only a part of fields on table at DB_2
What can possible cause this bugs beside the network traffic?
The client machine runs on an Win98, with Intel 133 Pentium and 32 MB RAM. Does opening 2 transactions at the same time are too heavy for it?
Using VB 6, SQL Server 7.0 (no SP), ADO 2.5
I need to update into 2 databases : DB_1 and DB_2. Coz this process is critical, I used the Transaction method.
The code goes like below :
'Begin transaction
DB_1.BeginTrans
DB_2.BeginTrans
'processing something...
'See if everything is OK
If bValid Then
DB_1.CommitTrans
DB_2.CommitTrans
Else
DB_1.RollbackTrans
DB_2.RollbackTrans
End If
The problem:
-. Sometimes it update NOTHING on table at the second database (DB_2)
-. Or, it updates only a part of fields on table at DB_2
What can possible cause this bugs beside the network traffic?
The client machine runs on an Win98, with Intel 133 Pentium and 32 MB RAM. Does opening 2 transactions at the same time are too heavy for it?