CaseSensitive list of tables from C#

A

abbeyro

Hello,

I'm trying to retrieve a list of tables from all_tables in a given
Oracle db. I'm using System.Data.OracleClient, OracleCommand and
OracleDataReader and I always obtain the results in uppercase. The
problem is that some tables where defined in "Mixed/Case" so when I
retrieve the list I need to obtain the exact case used when they were
created. Is there any option I need to specify in the connection or
the data provider to achieve this? From the SQL command line I do get
the right case, the problem happens only from C#. Any advice is
welcome.

Thank-you.
Abbeyro
 
A

abbeyro

On Jan 7, 12:53 pm, "Nicholas Paldino [.NET/C# MVP]"
name upon creation, it will retain the table name (you should test this out
first).

Thanks for your reply Nicholas. I already verified that all_tables
actually returns the proper case, by using Oracle's command line.
The issue therefore seems to be with the Microsoft adapter that
returns everything uppercase.

Created as: "my/table"
From shell: my/table
From .NET: MY/TABLE

Is there any way to specify that this shouldn't be the correct
behavior?

Thank-you in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top