摘要
通过实例详细地介绍了在Labwindows/CVI中运用ADO技术访问数据库的两种方法及其实现的关键,同时通过对两种方法的对比测试发现Recordset对象法具有快速访问数据库的优势,然而繁琐的类型转化限制了这种方法的使用,为此作者扩展了原有ADO函数驱动器,对数据类型转换的操作进行了打包,使得记录的读写更简单。经过扩展后的ADO函数驱动器使得数据库的访问更加方便、灵活,进一步拓展了LabWindows/CVI的应用。
This paper took an example to show how to access Microsoft Access with the ADO technology in two methods. By comparison of the two methods, it is easy to see that the method of Recordset Object has advantage in faster accessing the Access, but is limited by type conversion. So the authors extended the original ADO function drive, made the data type conversion built-in to make record teading and writing in a simple way. The Extended ADO function drive makes it is more convenient and flexible to access the Access, and thus extend the usage of the LabWindows/CVI.
出处
《中国测试技术》
2007年第1期102-104,共3页
CHINA MEASUREMENT & TESTING TECHNOLOGY