using System.Data.OleDb;
OleDbConnection connection = new OleDbConnection("Provider=MSDAORA; Data Source=数据库名_服务器IP地址;User Id=***;Password=***");//定义数据库的字符串
OleDbCommand catCMD = connection.CreateCommand();//定义连接数据库的命令
catCMD.CommandText = " SELECT * FROM student ";//定义对数据库操作的SQL语句
connection.Open();//打开连接
1