Posts

Showing posts from November 27, 2018

Is serializability same as sequential consistency?

Image
up vote 5 down vote favorite I have found people answering differences between linearizability and searializability, but nowhere have I found people either saying that serializability is same as sequential consistency or it is different from that. Also I have been pounded with different definitions of the above terms in different articles, books and web pages and I have confused it all. Could someone please explain the difference between serializability and sequential consistency is it exists. I would appreciate formal definitions of the above terms additionally if possible (both in plain English and in terms of the program or execution histories). serializable consistency share | improve this question

Round cell values of a datatable (VB.NET)

Image
up vote 0 down vote favorite I have trouble rounding some cells from my datatable. I want this round to 2 decimal places, as you can imagine. I will explain quickly how I charge data to the DataTable : I have this function stored in a class: Protected Friend Function cargarPref(ByVal id_Pref As String) As DataTable Dim cmd As String = "Select Material,Cubicaje,SubTotal,ITBM,Total from Preferencia WHERE Id_Preferencia=@id_Pref" Dim t As New DataTable Try con.Open() comando = New OleDbCommand(cmd, con) comando.Parameters.AddWithValue("@id_Pref", id_Pref) adapter = New OleDbDataAdapter(comando) adapter.Fill(t) comando.Dispose() adapter.Dispose() con.Close() Catch ex As Exception MsgBox("Error en la consulta