Oracle不能通过ODBC连接的
引用:
using System.Data.Oledb;
使用:
(来自:zhengxia19, 时间:2003-10-28 0:31:00, ID:2256120)
OleDbConnection myConnection =new OleDbConnection("Provider=MSDAORA.1;Password=[你的];User ID=[你的];Data Source=[你的]");
myConnection.Open();
DataSet myDataset=new DataSet();
OleDbDataAdapter myAdapter=new OleDbDataAdapter("select * from *****",myConnection);
myAdapter.Fill(myDataset,"*****");