J
Jim Heavey
Hello, I am trying to figure out how to connect to an Oracle Database.
I was told that if I have Visual Studio.Net 2003, that the
Ststem.Data.Oracle namespace would install automatically. That does not
appear to to be the case.
http://www.able-
consulting.com/dotnet/adonet/Data_Providers.htm#OracleNETDataProvider
which is a resource for providing example connection strings, indicates
that the Microsoft Oracle provided is installed as part of the 1.1
Framework, but again, that does not appear to be the case. If I go to
the top of my program and write "Using System.Data." the system does not
show anything about Oracle... and I should see something for Oracle
right?
So I know where to download the namespace....but I am completly cluelsee
on exactly what a connection string looks like. "Able-Consulting.com"
shows the following as a valid connection string (in code):
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "Data Source=Oracle8i;" +
"Integrated Security=SSPI";
oOracleConn.Open();
How does this connect to and Oracle table? Am I suppose to put
something in to replace "Oracle8i"? What would this be? My
tssnames.ora (I think this is the name of the file) looks something like
this:
Fred.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = TCP.WORLD)(PROTOCOL = TCP)(HOST =
xx.xxx.xxx.xxx)(PORT = xxxx))
)
(CONNECT_DATA =
(SERVICE_NAME = Fred)
)
So what do I put into the "DataSource" ?
If I am using the IDE to build my connection string...Which provided do
I pick? I see a couple of them....
I would REALLY APPRECIATE YOUR HELP!!!!!!!!!!!!!
Thanks in advance for your assistance!!!!!!!!!
I was told that if I have Visual Studio.Net 2003, that the
Ststem.Data.Oracle namespace would install automatically. That does not
appear to to be the case.
http://www.able-
consulting.com/dotnet/adonet/Data_Providers.htm#OracleNETDataProvider
which is a resource for providing example connection strings, indicates
that the Microsoft Oracle provided is installed as part of the 1.1
Framework, but again, that does not appear to be the case. If I go to
the top of my program and write "Using System.Data." the system does not
show anything about Oracle... and I should see something for Oracle
right?
So I know where to download the namespace....but I am completly cluelsee
on exactly what a connection string looks like. "Able-Consulting.com"
shows the following as a valid connection string (in code):
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "Data Source=Oracle8i;" +
"Integrated Security=SSPI";
oOracleConn.Open();
How does this connect to and Oracle table? Am I suppose to put
something in to replace "Oracle8i"? What would this be? My
tssnames.ora (I think this is the name of the file) looks something like
this:
Fred.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = TCP.WORLD)(PROTOCOL = TCP)(HOST =
xx.xxx.xxx.xxx)(PORT = xxxx))
)
(CONNECT_DATA =
(SERVICE_NAME = Fred)
)
So what do I put into the "DataSource" ?
If I am using the IDE to build my connection string...Which provided do
I pick? I see a couple of them....
I would REALLY APPRECIATE YOUR HELP!!!!!!!!!!!!!
Thanks in advance for your assistance!!!!!!!!!