Hola
Intento hacer transiciones con dos bd, pero no se como hacer el BeginTrans, Roll BackTrans, ni CommitTrans
Código PHP:
conn1.BeginTrans
SQL="UPDATE Tabla1 ..... (BD1)
conn1.Execute(SQL)
if Err.number <> 0 Then
Response.Clear ()
conn1.RollBackTrans
Err.Clear ()
Response.End ()
else ' no hay error
SQL="INSERT INTO Tabla2 .... (BD1)
conn1.Execute(SQL)
if Err.number <> 0 Then
Response.Clear ()
conn1.RollBackTrans
Err.Clear ()
Response.End ()
else ' no hay error
SQL="INSERT INTO Tabla1 .... (BD2)
conn2.Execute(SQL)
if Err.number <> 0 Then
Response.Clear ()
conn2.RollBackTrans
Err.Clear ()
Response.End ()
else ' no hay error
conn1.CommitTrans
end if
end if
end if
Gracias