1
Answer

simple problem with datareader

sgreenst

sgreenst

21y
1.6k
1
I've got this wierd issue: An ODBC driver to a legacy system sticks a '$' sign in front of the number on the Price column. I use an ODBC query tester to check my SQL statements and I can see this happening. According to the reader.GetSchemaTable, this column is of decimal type. However any type of reader.GetValue, .GetDecimal, or ToString method I try causes an exception because of incorrect format. It rightly sees this typed as decimal, but bonks on the dollar sign. So the question is: is there an 'agnostic' way to read this data so that I can strip the '$' out? Will gladly return help if anyone can assist me. TIA!
Answers (1)
0
Crish
NA 3.7k 76.4k 14y
Hi

There are many different types of jobs in computer hardware. If you like working with your hands and are interested in how computers and networks function, this may be the ideal field for you.

If you want to more detail about computer hardware than go for this below link.

http://jobs.lovetoknow.com/Jobs_in_Computer_Hardware
0
Sam Hobbs
NA 28.7k 1.3m 14y