G
Guest
Hello Everyone:
I am trying to develop a fairly complex application using Visual Studio, (2003)
the .net framework 1.1, and Oracle 9i as the database. I'm using VB.NET
We found problems with the OLEDB Data Provider that were serious, and
so we took the time to switch our code to the OracleClient Data Provider.
I have written a test program that queries on column from an Oracle table.
The column is defined as number(7,3)
Using OLEDB, the number is returned to a texbox as 6.944
Using OracleClient, the number displays in the textbox as
6.9440
Why is there a trailing 0 using OracleClient? There is no
trailing zero using OLEDB nor when querying from SQLPLUS.
What is the best way to get rid of this trailing zero?
In the real application that I am developing, there is a regular
expression validator control that checks to make sure that only
three decimals get entered.
^(??\d{0,4}(?:\.\d{0,3})?$
I need to enforce this business rule. The trailing zero is not in
the data, and it is not acceptable.
Please advise.
Paul Deibel
I am trying to develop a fairly complex application using Visual Studio, (2003)
the .net framework 1.1, and Oracle 9i as the database. I'm using VB.NET
We found problems with the OLEDB Data Provider that were serious, and
so we took the time to switch our code to the OracleClient Data Provider.
I have written a test program that queries on column from an Oracle table.
The column is defined as number(7,3)
Using OLEDB, the number is returned to a texbox as 6.944
Using OracleClient, the number displays in the textbox as
6.9440
Why is there a trailing 0 using OracleClient? There is no
trailing zero using OLEDB nor when querying from SQLPLUS.
What is the best way to get rid of this trailing zero?
In the real application that I am developing, there is a regular
expression validator control that checks to make sure that only
three decimals get entered.
^(??\d{0,4}(?:\.\d{0,3})?$
I need to enforce this business rule. The trailing zero is not in
the data, and it is not acceptable.
Please advise.
Paul Deibel