473,405 Members | 2,171 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,405 software developers and data experts.

Which "using" statement for OracleConnection ?

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) ?

Peter

May 25 '07 #1
3 2841
"Peter Kanurer" <pe*******@yahoo.co.ukschrieb im Newsbeitrag
news:46***********************@newsspool4.arcor-online.net...
>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) ?
The namespace aswell as the assembly of this classes is
'System.Data.OracleClient'.

Christof

May 25 '07 #2
On May 25, 12:21 pm, peter2...@yahoo.co.uk (Peter Kanurer) wrote:
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) ?

Peter
Hi Peter,

I am not sure the System.Data.OracleClient exists in the Visual Studio
2005 express edition but all you have to do is
add a reference to System.Data.OracleClient to your project.

Then, you can use the classes included in the namespace such as
OracleCommand:

using( System.Data.OracleClient.OracleCommand cmd = new
System.Data.OracleClient.OracleCommand() )
{
....
}

Hope this helps.

Moty

May 25 '07 #3
"Peter Kanurer" <pe*******@yahoo.co.ukwrote in message
news:46***********************@newsspool4.arcor-online.net...
>I thought "using System.DataAccess.Client"
using System.Data;
using System.Data.OracleClient; // if you're using the built-in namespace
using Oracle.DataAccess.Client; // if you're using ODP.NET
Do I have to install a separate package
http://www.oracle.com/technology/pub...ok_dotnet.html
--
http://www.markrae.net

May 25 '07 #4

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

Similar topics

10
by: Andreas Müller | last post by:
Hi all, I have a class SwitchCursor, that implements IDisposable. Is it legal to use an object that is not assigned to a reference inside a using statement like this: using(new...
4
by: Philipp Sumi | last post by:
Hello all I have a thread that performs some simple I/O within a loop that runs on a separate thread. I used the using keyword to ensure the writer's disposal: using (writer) { while...
8
by: Geri Reshef | last post by:
Many times I find code examples in the internet which don't have the "using" statements needed to run them, and without it the compilation fails. Is there a way to find the correct "using" statement...
5
by: charliewest | last post by:
I've implemented the USING statement to ensure that my newly created sql connection closes when my method is finished using it. The USING statement is wrapped in try/catch error handling statement....
14
by: MuZZy | last post by:
Hi, Lately i've been (and still am) fixing some memory leaks problems in the project i just took over when i got this new job. Among the other issues i've noticed that for localy created objects...
2
by: R.A.M. | last post by:
Hello, I have started larning C# and I have a question concerning "using (...)" keyword. For example: using (SqlConnection connection = new SqlConnection(ConnectionString)) {...
25
by: samjnaa | last post by:
Please check for sanity and approve for posting at python-dev. In Visual Basic there is the keyword "with" which allows an object- name to be declared as governing the following statements. For...
3
by: Wolfgang Meister | last post by:
Is there a way to let VisualStudio insert automatically (after pressing e.g. F7) missing "Using" statements at the top ? Or is there a menu which suggests inserts for using directives ? How...
3
by: S Moran | last post by:
why would i do this? using (FileStream fs = File.Create(path)) wouldnt FileStream fs = File.Create(path) work fine?
5
by: blackjack2150 | last post by:
Hi. In my application I write errors which may occur to text file like this: using(StreamReader sw = new SteamReader(errors.txt, true)) { sw.WriteLine("Error message here"); } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.