473,388 Members | 1,215 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Can References to "Oracle.DataAccess" AND "System.Data.OracleClient" co-exist in one application ?

Assume I add in VisualCSharp 2005 References to

Oracle.DataAccess

AND

System.Data.OracleClient

to an application. Does this cause problems or can they co-exist in one application ?

Peter

Jun 9 '07 #1
4 4990

"Peter Kanurer" <pe*******@yahoo.co.ukwrote in message
news:46***********************@newsspool3.arcor-online.net...
Assume I add in VisualCSharp 2005 References to

Oracle.DataAccess

AND

System.Data.OracleClient

to an application. Does this cause problems or can they co-exist in one
application ?
One is in the System namespace and one in in the Oracle namespace or two
different dll(s). So, you can use them both with in one application. You can
use them both in the same class if it came down to that it, but I don't know
why anyone would do it. It's either one or the other. I think you would need
the Oracle DataAccess if you needed to work with CLOB or BLOB data, as I
don't think the one in System can do that.

Jun 9 '07 #2
I think you can, but you have to use Namespace.X when X is defined in both
namespaces (however the compiler will tell you there is an ambiguous
reference).
HTH,
Luigi.
Jun 9 '07 #3
Peter Kanurer wrote:
Assume I add in VisualCSharp 2005 References to

Oracle.DataAccess

AND

System.Data.OracleClient

to an application. Does this cause problems or can they co-exist in one application ?
They can.

But I think you are asking for problems. Use one or another.

Arne
Jun 9 '07 #4
Arne Vajhøj wrote:
Peter Kanurer wrote:
>Assume I add in VisualCSharp 2005 References to

Oracle.DataAccess

AND

System.Data.OracleClient

to an application. Does this cause problems or can they co-exist in
one application ?

They can.

But I think you are asking for problems. Use one or another.
And I am not talking about namespace & compile problems but
about the problem of accessing the same data through two
providers.

Arne
Jun 9 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: arvee | last post by:
Hi - I'm updating an Oracle table with an empty string and getting the error: An unhandled exception of type 'System.Exception' occurred in system.data.dll Additional information: Parameter...
3
by: fareeda | last post by:
What is the equivalent of "@" (oracle) in db2? I could use -f option but the basic requirement is to be able to call file Y from file X. In Oracle I can have file X as: --- command 1; command...
24
by: Hardy | last post by:
I'm pretty new in this field. when reading some 70x material, I met with this term but cannot catch its accurate meaning. who can help me? thanks in advance:)~
2
by: narasingarao | last post by:
Hi to group, I'm a student of M.C.A. from B.I.T. Ranchi...I'm in my project period here i have to migrate the MS-Access database table to Oracle data base tables...so, please help me in getting...
10
by: Assimalyst | last post by:
Hi, I'm attempting to use a data reader to load data from a single table, tblCountry, with two columns, countryNo (the Key) and countryName, into a DropDownList box. Here's the code: ...
1
by: DJ DIGI | last post by:
Hello Everyone, I'm attempting to design a small web app to obtain customer feedback. The issue is when a user inputs >4000 characters in the COMMENTS section I get the following Err Msg: ...
1
by: Tom W | last post by:
code snipped from MS sample "N-Tier Data Form and Data Layer" example (101 vb.net samples). Public Class frmMain Private dsSupplierProducts as DataSet Private dtSupplier as DataTable Private...
3
by: Peter Kanurer | last post by:
I thought "using System.DataAccess.Client" would contain all necessary stuff for OracleConnection, OracleCommand and OracleDataReader objects but this is not the case. They are still...
2
by: Werner Sammer | last post by:
I tried to connect to an existing Oracle Database with the following ConnectionString: using System.Data.OracleClient; // + Added Reference "System.Data.OracleClient" string cs = "Data...
2
by: anilreddy76 | last post by:
Hi Friends............. I have written one view in oracle once I try to click the "Data" tab in Toad to display the data,it is throwing following error. ORA-01446: cannot select ROWID from, or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.