用Visual C++开发数据库,什么技术最好?
我只会用ODBC,好象还有ADO,什么技术好一点啊 问题点数:50、回复次数:3Top
1 楼GoldenLion(黄金狮子)回复于 2000-02-13 16:57:00 得分 0
1. OLEDB--It provide full function with it's own OLEDB driver and native driver. Because it's a COM-based service, you should use it only in VC++.
2. ADO--It's a automation server that wrap OLEDB function. If the speed isn't your most care about, it's the better way. Using the "#import", you can easily get the interface pointer and it's function. There're many document on it in MSJ.
3. ODBC--Not recommend. Top
2 楼bokei(一夜好眠)回复于 2000-02-13 17:01:00 得分 20
现在用DAO比较好,运行比较稳定.
ADO(2.0)经常非法操作.而且不能够修复和压缩数据库.不过照微软说在不久后会用ADO代替其他的接口.现在好象已经推出ADO2.1了.不知道有没有改善.Top
3 楼GoldenLion(黄金狮子)回复于 2000-02-13 17:38:00 得分 30
DAO只适用于ACCESS的存取,速度快且稳定,但存取其它数据库时最终通过ODBC存取,导致性能下降。
现阶段的OLEDB和ADO在ACCESS上速度慢且不稳定,但在存取其它数据库时是最好方法。更重要的是,OLEDB和ADO支持异构数据库,可以存取诸如Outlook和Active Directory这样的数据源,而Active Directory在Win2000中可是至关重要的.
另外,OLEDB是MDAC的一部分,MDAC又是Microsoft DNA在Middleware的未来之路。即便现在的Access 2000也能用SQL Server的引擎,DAO所擅长的JET引擎已经被MS淡忘。
总而言之,除非只在Access 97下写数据库,OLEDB将是推荐技术。
Top




