G
Guest
Hi when i try below code
public DataSet GetData(string ConString)
{
OracleDataAdapter da;
DataSet ds = new DataSet();
// Setup connection string to access Oracle 9i
// Instantiate the connection, passing the
// connection string into the constructo
OracleConnection con = new OracleConnection(ConString);
// Open the connection
con.Open();
// Populate DataSet and close the Database Connection
string sql = "SELECT * From customer";
da = new OracleDataAdapter (sql,con);
da.Fill(ds,"Customer");
// Close the connection
con.Close();
return ds;
}
i get that error
An unhandled exception of type 'System.Exception' occurred in
system.data.oracleclient.dll
Additional information: System.Data.OracleClient requires Oracle client
software version 8.1.7 or greater.
i am using ODBC driver with acces working fine but now i am trying to
convert my application from access to c#..... i got above errors
public DataSet GetData(string ConString)
{
OracleDataAdapter da;
DataSet ds = new DataSet();
// Setup connection string to access Oracle 9i
// Instantiate the connection, passing the
// connection string into the constructo
OracleConnection con = new OracleConnection(ConString);
// Open the connection
con.Open();
// Populate DataSet and close the Database Connection
string sql = "SELECT * From customer";
da = new OracleDataAdapter (sql,con);
da.Fill(ds,"Customer");
// Close the connection
con.Close();
return ds;
}
i get that error
An unhandled exception of type 'System.Exception' occurred in
system.data.oracleclient.dll
Additional information: System.Data.OracleClient requires Oracle client
software version 8.1.7 or greater.
i am using ODBC driver with acces working fine but now i am trying to
convert my application from access to c#..... i got above errors