By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.