在网上搜索使用ADO访问VFP数据表的时候发现了一个网页,其中有关于如何建立ADO联接字符串的表格。先把地址放在这里,可以方便去访问。
再把所有的内容复制在这里,省的那个网页以后不能访问。
|
DB | Connection String |
---|
Access | Access ODBC Connection String Driver{Microsoft Access Driver (*.mdb)};Dbq=C:\demo.mdb;Uid=Admin;Pwd=;Access OLEDB Connection String DriverProvider=Microsoft.Jet.OLEDB.4.0;Data Source=\directory\demo.mdb;User Id=admin;Password=; | DB2 | DB2 ODBC Connection Stringdriver={IBM DB2 ODBC DRIVER};Database=demodb;hostname=myservername;port=myPortNum;protocol=TCPIP; uid=myusername; pwd=mypasswdDB2 OLEDB Connection StringProvider=IBMDADB2;Database=demodeb;HOSTNAME=myservername;PROTOCOL=TCPIP;PORT=50000;uid=myusername;pwd=mypasswd; | DBase | DBase ODBC Connection StringDriver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\directory;DBase OLEDB Connection StringProvider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\directory;Extended Properties=dBASE IV;User ID=Admin;Password= | Excel | Excel ODBC Connection StringDriver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=C:\MyExcel.xls;DefaultDir=c:\directory;Excel OLEDB Connection StringProvider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties='"Excel 8.0;HDR=Yes;IMEX=1"' | Exchange | Exchange OLEDB Connection StringoConn.Provider = "EXOLEDB.DataSource" oConn.Open = "http://myServerName/myVirtualRootName" | Firebird | Firebird ODBC Connection StringDRIVER=Firebird/InterBase(r) driver;UID=SYSDBA;PWD=mypasswd;DBNAME=c:\directory\demo.fdbFirebird OLEDB Connection StringUser=SYSDBA;Password=mypasswd;Database=demo.fdb;DataSource=localhost;Port=3050;Dialect=3;Charset=NONE;Role=;Connection lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;Packet Size=8192;ServerType=0 | FoxPro | FoxPro ODBC Connection StringDriver={Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=c:\demo.dbc;Exclusive=No;NULL=NO;Collate=Machine;BACKGROUNDFETCH=NO;DELETED=NOFoxPro OLEDB Connection StringProvider=vfpoledb.1;Data Source=c:\directory\demo.dbc;Collating Sequence=machine | Informix | Informix ODBC Connection StringDriver={Informix-CLI 2.5 (32 Bit)};Server=demoservername;Database=demodb;Uid=myusername;Pwd=mypasswdInformix OLEDB Connection StringProvider=Ifxoledbc.2;User ID=myusername;password=mypasswd;Data Source=demodb@demoservername;Persist Security Info=true | MySQL | MySQL ODBC Connection StringDRIVER={MySQL ODBC 3.51 Driver};SERVER=myservername;PORT=3306;DATABASE=mydemodb; USER=myusername;PASSWORD=mypasswd;OPTION=3;MySQL OLEDB Connection StringProvider=MySQLProv;Data Source=mydemodb;User Id=myusername;Password=mypasswd; | Oracle | Oracle ODBC Connection StringDriver={Microsoft ODBC for Oracle};Server=myservername;Uid=myusername;Pwd=mypassword;Oracle OLEDB Connection StringProvider=msdaora;Data Source=mydemodb;User Id=myusername;Password=mypasswd;Oracle .Net Connection StringData Source=mydemodb;User Id=myusername;Password=mypasswd;Integrated Security=no; | SQL Server | SQL Server ODBC Connection String - Database LoginDriver={SQL Server};Server=myservername;Database=mydemodb;Uid=myusername;Pwd=mypasswd;SQL Server ODBC Connection String - Trusted ConnectionDriver={SQL Server};Server=mysername;Database=mydemodb;Trusted_Connection=yes;SQL Server OLEDB Connection String - Database LoginProvider=sqloledb;Data Source=myservername;Initial Catalog=mydemodb;User Id=myusername;Password=mypasswd;SQL Server OLEDB Connection String - Trusted ConnectionProvider=sqloledb;Data Source=myservername;Initial Catalog=mydemodb;Integrated Security=SSPI;SQL Server .Net Connection String - Database LoginServer=myservername;Database=mydemodb;User ID=myusername;Password=mypasswd;Trusted_Connection=FalseSQL Server .Net Connection String - Trusted ConnectionServer=myservername;Database=mydemodb;Integrated Security=SSPI; | Sybase | Sybase ODBC Connection StringDriver={SYBASE ASE ODBC Driver};Srvr=myservername;Uid=myusername;Pwd=mypasswdSybase OLEDB Connection StringProvider=Sybase.ASEOLEDBProvider;Server Name=myservername,5000;Initial Catalog=mydemodb;User Id=myusername;Password=mypassword |
|
|