
15/03/2006, 08:36
|
| | Fecha de Ingreso: noviembre-2004 Ubicación: Asuncion - Paraguay
Mensajes: 155
Antigüedad: 20 años, 4 meses Puntos: 0 | |
SqlConnection conn = new SqlConnection(bd.ConectionString);
conn.Open();
SqlTransaction trans = conn.BeginTransaction();
try
{
SqlHelper.ExecuteNonQuery(trans, CommandType.Text, consulta);
trans.Commit();
}
catch
{
// Restore the database state if there was an error.
trans.Rollback();
}
finally
{
conn.Close();
} |