$conn = &ADONewConnection($typeBD);
$conn->Connect($mySQLserver, $mySQLuser, $mySQLpassword, $mySQLdb);
$conn->debug = true;
$conn->StartTrans();
$conn->Execute($sql);
$conn->Execute($sql_2);
$id = $conn->Insert_ID();
$conn->Execute($sql_4);
$conn->CompleteTrans();
$conn->Close();