I have an account number in excel (.csv) which I read into a dataTable.
The account number is displayed as 5.01E+13
in excel and hence reads the same into a dataTable. Whereas the original value is 50100393946569
. I need to compare the account numbers from Excel with the ones stored in the database. How to bring 5.01E+13
to its original format 50100393946569
either in VB or SQL
Below is code of reading excel to datatable
Dim sreader as StreamReader
Dim sstring as String
Dim dt as DataTable
Sreader = File.OpenText(Path.ToString) 'this path is path of the excel
While sreader.Peek <> -1
sstring = sreader.Readline
Dim str as String () = sstring.split(",")
Dim rowdt as DataRow
rowdt = dt.NewRow()
For i as Integer = 0 to dt.Columns.count-1
rowdt(i) = str(i).ToString
Next
dt.rows.add(rowdt)
End while