How can I establish the database connection with the back end of oracle10g express edition with the front end of asp.net?. Please send the source code.
Asked
Active
Viewed 78 times
-3
-
1This might give you some tips: http://stackoverflow.com/questions/782181/connect-to-an-oracle-10g-database-with-microsoft-odbc-for-oracle – Jason Evans Jun 28 '10 at 11:29
1 Answers
1
Once you've downloaded the appropriate driver you reference the assembly in your project you could perform SQL queries against the database:
using (var conn = new OracleConnection(ConnectionString))
using (var command = conn.CreateCommand())
{
conn.Open();
command.CommandText = "SELECT id FROM foo;";
using (var reader = command.ExecuteReader())
{
while (reader.Read())
{
// TODO: exploit the results
}
}
}
Reading the technical articles accompanying the driver might also be useful.

Darin Dimitrov
- 1,023,142
- 271
- 3,287
- 2,928