473,761 Members | 9,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can References to "Oracle.DataAcc ess" AND "System.Data.Or acleClient" co-exist in one application ?

Assume I add in VisualCSharp 2005 References to

Oracle.DataAcce ss

AND

System.Data.Ora cleClient

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

Peter

Jun 9 '07 #1
4 5026

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

Oracle.DataAcce ss

AND

System.Data.Ora cleClient

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.DataAcce ss

AND

System.Data.Ora cleClient

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.DataAcc ess

AND

System.Data.Or acleClient

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
14951
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 'p1': No size set for variable length data type: String. The column is nullable and of type varchar2(50). I'm aware that I can store DBNull.Value instead and Oracle won't complain, but, I was hoping to avoid
3
2621
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 2; @file Y; disconnect;
24
7667
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
5903
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 this....if possible plz send me the sample code.. thanking you,
10
5338
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: protected System.Data.SqlClient.SqlConnection conn; protected System.Data.SqlClient.SqlDataReader drCountry;
1
16234
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: ORA-01704: string literal too long. I am using Visual Studio.Net 2003 (vb as language), SQL+ to create tables in Oracle 9i, and Access to just link and veiw the tables.
1
1313
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 dtProducts as DataTable Private dvSupplier as DataView Private dvProduct as DataView
3
2872
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 unresolved after adding. Do I have to install a separate package or enable Oracle specific extensions somewhere in VisualStudio 2005 (Express) ?
2
9612
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 Source=XE;User Id=karl;Password=mypasswd"; connection = new OracleConnection(cs); connection.Open(); This code yields an "Invalid argument" ORA-12532 error.
2
4608
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 sample, a view with DISTINCT, GROUP BY, etc. ORA-02063: preceding line from SRTS.PROD but once I run this as query I mean "select * from Viewname" I'm getting the data. Please let me know if you have any inputs on this..
0
9521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9333
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10107
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9945
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8768
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.