public void BorrarTitulacion(string nombre)
{
SqlConnection c = null;
string comando = "DELETE FROM [Titulacion] WHERE nombre='"+nombre+"'";
try
{
c = new SqlConnection(conexionTBD);
c.Open();
SqlCommand cmd = new SqlCommand(comando, c);
cmd.ExecuteNonQuery();
}
catch (SqlException )
{
throw;
}
finally
{
if (c != null) c.Close(); // Se asegura de cerrar la conexión.
}
}