Thanks. I tried to use to_char, but I also need ltrim and rtrim as well as to_char, as extra spaces showed up with just to_char.
The good news is that I have an approach to use as a workaround. The bad news is how much code I have to change. Why do the two data providers behave so differently? (OLEDB versus OracleClient) Are all of the differences documented somewhere? Is Microsoft planning a patch for OracleClient? If in the future we need to change the column definitions on the database, we may need to revisit the .net V/B code, and that's not good. I like the way OLEDB handles numbers better. But did they change things in OracleClient to fix some other problem that I don't know about. Please advise.
Thanks ... P.D.
Hi Paul,
It's great to hear that the workaround works.
I am not familiar with OracleClient and not quite sure why it behaves
differently, but I think there may be some reasons. As for the possible
column definitions in the future, I agree with you that you may need to
revist the code. You can try to format/process the data before binding them
to control directly if necessary. This can make the application more
flexible.
Regards,
Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Thread-Topic: Data Provider Problem
>thread-index: AcPlHOAXEku67R1nRc6MFzwKQus2vA==
>X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
>From: "=?Utf-8?B?UGF1bCBEZWliZWw=?=" <Paul.Deibel@State.Ma.Us>
>References: <1B2DB675-893A-48D2-ABF0-F3989C98D3B0@microsoft.com>
<V#KzkaL5DHA.1992@cpmsftngxa07.phx.gbl>
>Subject: RE: Data Provider Problem
>Date: Tue, 27 Jan 2004 13:31:07 -0800
[quoted text clipped - 16 lines]
>
>Thanks. I tried to use to_char, but I also need ltrim and rtrim as well as to_char, as extra spaces showed up with just to_char.
The good news is that I have an approach to use as a workaround. The bad
news is how much code I have to change. Why do the two data providers
behave so differently? (OLEDB versus OracleClient) Are all of the
differences documented somewhere? Is Microsoft planning a patch for
OracleClient? If in the future we need to change the column definitions on
the database, we may need to revisit the .net V/B code, and that's not
good. I like the way OLEDB handles numbers better. But did they change
things in OracleClient to fix some other problem that I don't know about.
Please advise.
Thanks ... P.D.
Arun R - 19 Mar 2004 13:21 GMT
Dear Felix / Paul
I am facing a problem with oracle client and not getting how to resolve this
I am using System.Data.OracleClient fromframework1.1 in dataset I receive some strange records. It is retrieving the menu records in dataset is not filled correctly. Second record onward in each zero level menu group is corrupted. E.g. in That dataset the table is filled with “AssetShield” in first record and “AssetSh\0\0\0\0\0” value in the next record. If I use the same code with OleDb then it works fine. Also the same program works correctly on another machine. I know there must be some problem with version and oracle driver but not able to figure out
Please help m
Thanks
Arun R
Arun R - 19 Mar 2004 13:21 GMT
Dear Felix / Paul
I am facing a problem with oracle client and not getting how to resolve this
I am using System.Data.OracleClient fromframework1.1 in dataset I receive some strange records. It is retrieving the menu records in dataset is not filled correctly. Second record onward in each zero level menu group is corrupted. E.g. in That dataset the table is filled with “AssetShield” in first record and “AssetSh\0\0\0\0\0” value in the next record. If I use the same code with OleDb then it works fine. Also the same program works correctly on another machine. I know there must be some problem with version and oracle driver but not able to figure out
Please help m
Thanks
Arun R - 19 Mar 2004 13:21 GMT
Dear Felix / Paul
I am facing a problem with oracle client and not getting how to resolve this
I am using System.Data.OracleClient fromframework1.1 in dataset I receive some strange records. It is retrieving the menu records in dataset is not filled correctly. Second record onward in each zero level menu group is corrupted. E.g. in That dataset the table is filled with “AssetShield” in first record and “AssetSh\0\0\0\0\0” value in the next record. If I use the same code with OleDb then it works fine. Also the same program works correctly on another machine. I know there must be some problem with version and oracle driver but not able to figure out
Please help m
Thanks
Arun R
Arun R - 19 Mar 2004 13:21 GMT
Dear Felix / Paul
I am facing a problem with oracle client and not getting how to resolve this
I am using System.Data.OracleClient fromframework1.1 in dataset I receive some strange records. It is retrieving the menu records in dataset is not filled correctly. Second record onward in each zero level menu group is corrupted. E.g. in That dataset the table is filled with “AssetShield” in first record and “AssetSh\0\0\0\0\0” value in the next record. If I use the same code with OleDb then it works fine. Also the same program works correctly on another machine. I know there must be some problem with version and oracle driver but not able to figure out
Please help m
Thanks
Arun R
Felix Wu [MSFT] - 23 Mar 2004 09:13 GMT
Hi Arun,
It seems that your record contains non-english chars, right? For test
purpose, does this occur if you remove these non-english chars from the
record in database?
Also, have you tried to reinstall the Microsoft Managed Provider for
Oracle?
Thanks,
Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Thread-Topic: Data Provider Problem
>thread-index: AcQNrKkVpMOJhKziS8q0jlsWe3XxCw==
>X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
>From: =?Utf-8?B?QXJ1biBS?= <anonymous@discussions.microsoft.com>
>References: <1B2DB675-893A-48D2-ABF0-F3989C98D3B0@microsoft.com>
<V#KzkaL5DHA.1992@cpmsftngxa07.phx.gbl>
<B7D8B4D2-3ED8-4C2B-A586-A89BF6C9AC08@microsoft.com>
<1GVAqeV5DHA.4028@cpmsftngxa07.phx.gbl>
>Subject: RE: Data Provider Problem
>Date: Fri, 19 Mar 2004 04:21:09 -0800
[quoted text clipped - 16 lines]
>
>Dear Felix / Paul,
I am facing a problem with oracle client and not getting how to resolve
this?
I am using System.Data.OracleClient fromframework1.1 in dataset I receive
some strange records. It is retrieving the menu records in dataset is not
filled correctly. Second record onward in each zero level menu group is
corrupted. E.g. in That dataset the table is filled with
???AssetShield???in first record and ???AssetSh\0\0\0\0\0???value in the
next record. If I use the same code with OleDb then it works fine. Also the
same program works correctly on another machine. I know there must be some
problem with version and oracle driver but not able to figure out.
Please help me
Thanks
Arun R