Ole对象在Access中存储为二进制文件,读取的时候需要注意转换出的文件的编码格式
 1ACCESS的Ole对象读取OleDbConnection OleConn = new OleDbConnection();
 2ACCESS的Ole对象读取OleConn.ConnectionString =
@"
Provider=Microsoft.Jet.OleDb.4.0;data source=D:\WorkStation\Dialy_Sol\Dialy\Dialy.mdb";
 3ACCESS的Ole对象读取OleDbCommand OleCmd = new OleDbCommand();
 4ACCESS的Ole对象读取OleCmd.Connection = OleConn;
 5ACCESS的Ole对象读取OleCmd.CommandType = CommandType.Text;
 6ACCESS的Ole对象读取OleCmd.CommandText =
"
SELECT Dialy_Content FROM Dialy_Info WHERE Dialy_Date='2008-5-2'";
 7ACCESS的Ole对象读取if (OleConn.State == ConnectionState.Closed)
 8
< /span>19< span style="color: #000000;">ACCESS的Ole对象读取
//DialyContent就是 读取出来后的中文


相关文章:

  • 2022-12-23
  • 2021-10-05
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-11-17
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案