我查了一下MSDN,摘录如下:OLE DB Providers
Four OLE DB providers are included with this version of OLE DB. OLE DB Provider for Oracle
Allows high performance and functional access to Oracle data for Visual Basic® applications. OLE DB Provider for ODBC Provides
access to ODBC data sources by exposing OLE DB interfaces, methods and properties with certain limitations. OLE DB Provider for Microsoft® Jet
Allows Microsoft Jet-specific implementation of standard OLE DB interfaces, methods, and properties. OLE DB provider for Microsoft® SQL Server™
Exposes interfaces to consumers wanting access to data on one or more SQL Servers. ADO是用OLEDB连接的,ODBC又是OLEDB中的一种,为什么很多人说用ADO不用ODBC,或者问用ADO好还是用ODBC好?我弄不懂了?到底是怎么回事?是不是我的MSDN太旧了?
Four OLE DB providers are included with this version of OLE DB. OLE DB Provider for Oracle
Allows high performance and functional access to Oracle data for Visual Basic® applications. OLE DB Provider for ODBC Provides
access to ODBC data sources by exposing OLE DB interfaces, methods and properties with certain limitations. OLE DB Provider for Microsoft® Jet
Allows Microsoft Jet-specific implementation of standard OLE DB interfaces, methods, and properties. OLE DB provider for Microsoft® SQL Server™
Exposes interfaces to consumers wanting access to data on one or more SQL Servers. ADO是用OLEDB连接的,ODBC又是OLEDB中的一种,为什么很多人说用ADO不用ODBC,或者问用ADO好还是用ODBC好?我弄不懂了?到底是怎么回事?是不是我的MSDN太旧了?
解决方案 »
- DELPHI中Tsavetestfiledialog怎么用
- array of char数组该怎么释放?
- delphi 向在线html编辑器提交表单,其采用iframe内嵌的编辑区,textarea方式提交不了数据怎么办? (分少了些,希望高和帮我!谢谢)
- 一个页面控制问题,搞过的高手请进,来着接分!!!
- 怎么从Access数据库的一个表中将数据批量导入一个dbf表?
- 请教 延迟时间用什么函数 多谢
- 如何在程序中自动配置数据库
- 一小段代码,那里错了?
- 下载的Delphi5没法安装!!!!
- 该sql语句怎么写?急!!!
- 请问如何使程序在一时候只运行一个实例--最简单方法,最好一个过程能解决,不要太多功能
- hfyun and高手 Delphi的QuickReport中纸张怎么设置为自定义的
为了使ADO能兼容更多范围的数据源特别是没有ADO驱动但有ODBC驱动的数据源,ADO也提供了通过ODBC访问数据源的途径。
有原生的针对某一种数据库的ADO驱动提供程序,而不用经过ODBC,如OLE DB Provider for Oracle,OLE DB Provider for SQL Server等。
其实其它的数据库也应该有OLE DB驱动程序,只不过是厂家自己写罢了,这类程序一般也是免费提供的,你可以到他们的网上看看,也有第三方公司写的,不过好像要收费。
“用专用的OLE DB驱动要比ODBC快,但移植性要差一点”这句话就不对了,ADO也有连接字符串的配制文件,只不过不叫DSN,而是叫UDL(Microsoft 数据链接文件),所以“假如从SQL Server2000要升级到SQL Server3000(假设)的话,必须改程序中的连接字符串”这样的顾虑是没有必要的。