如果你是用 ADO 來連線資料庫的話,這些應該會常用到!要記起來!
"Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\DatabasePath;"
Select Name, Address From Clients.dbf
"Driver={Microsoft Excel Driver (*.xls)};DriverId=790;bq=C:\DatabasePath\DBSpreadSheet.xls;DefaultDir=c:\databasepath;"
"Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=C:\DatabasePath\;Extensions=asc,csv,tab,txt;"
Select Name, Address From Clients.csv
"Driver={Microsoft Visual Foxpro Driver};UID=;SourceType=DBC;SourceDB=C:\DatabasePath\MyDatabase.dbc;Exclusive=No"
"Driver={Microsoft Visual Foxpro Driver};UID=;SourceType=DBF;SourceDB=C:\DatabasePath\MyDatabase.dbc;Exclusive=No"
"Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\DatabasePath\dbaccess.mdb;Uid=;Pwd=;"
"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\VC Projects\ADO\Samples\AdoTest\dbTestSecurity.mdb;SystemDB=C:\Program Files\Microsoft Office\Office\SYSTEM.mdw;Uid=Carlos Antollini;Pwd=carlos"
"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\VC Projects\ADO\Samples\AdoTest\dbTestSecurity.mdb;SystemDB=C:\Program Files\Microsoft Office\Office\SYSTEM.mdw;Uid=Carlos Antollini;Pwd=carlos"
"Driver={SQL Server};Server=MyServerName;Trusted_Connection=no;Database=MyDatabaseName;Uid=MyUserName;Pwd=MyPassword;"
"Driver={SQL Server};Server=MyServerName;Database=myDatabaseName;Uid=;Pwd=;"
"Driver={SQL Server};Server=MyServerName;Database=MyDatabaseName;Trusted_Connection=yes;"
"Driver={SQL Server};Server=(local);Database=MyDatabaseName;Uid=MyUserName;Pwd=MyPassword;"
"Driver={SQL Server};Server=130.120.110.001;Address=130.120.110.001,1052;Network=dbmssocn;Database=MyDatabaseName;Uid=myUsername;Pwd=myPassword;"
"Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=MyUsername;Pwd=MyPassword;"
"Driver={Microsoft ODBC Driver for Oracle};ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword;"
"DSN=MyDSN;Uid=MyUsername;Pwd=MyPassword;"
"Provider=sqloledb;Data Source=MyServerName;Initial Catalog=MyDatabaseName;User Id=MyUsername;Password=MyPassword;"
"Provider=sqloledb;Data Source=MyServerName;Initial Catalog=MyDatabaseName;Integrated Security=SSPI;"
"Provider=sqloledb;Data Source=MyServerName\MyInstanceName;Initial Catalog=MyDatabaseName;User Id=MyUsername;Password=MyPassword;"
"Provider=sqloledb;Data Source=(local);Initial Catalog=myDatabaseName;User ID=myUsername;Password=myPassword;"
"Provider=sqloledb;Network Library=DBMSSOCN;Data Source=130.120.110.001,1433;Initial Catalog=MyDatabaseName;User ID=MyUsername;Password=MyPassword;"
"Provider=MySQLProv;Data Source=test"
"Provider=IBMDA400;Data source=myAS400;User Id=myUsername;Password=myPassword;
"Provider=ADSDSOObject;User Id=myUsername;Password=myPassword;"
"Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=130.120.110.001;Initial Catalog=MyCatalog;Package Collection=MyPackageCollection;Default Schema=MySchema;User ID=MyUsername;Password=MyPassword;"
"Provider=DB2OLEDB;APPC Local LU Alias=MyLocalLUAlias;APPC Remote LU Alias=MyRemoteLUAlias;Initial Catalog=MyCatalog;Package Collection=MyPackageCollection;Default Schema=MySchema;User ID=MyUsername;Password=MyPassword;"
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DatabasePath\MmDatabase.mdb;User Id=admin;Password=;"
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DataBasePath\mydb.mdb;Jet OLEDB:System Database=MySystem.mdw;"
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\DatabasePath\\DBSpreadSheet.xls;Extended Properties="Excel 8.0;HDR=Yes;"
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DatabasePath\;Extended Properties="text";HDR=Yes;FMT=Delimited;
"Provider=Microsoft.Jet.OLEDB.4.0;Outlook 9.0;MAPILEVEL=;DATABASE=C:\Temp\;"
"Provider=Microsoft.Jet.OLEDB.4.0;Exchange 4.0;MAPILEVEL=Mailbox - Pat Smith|;DATABASE=C:\Temp\;"
"Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\DatabasePath\MyDatabase.mdb;Uid=MyUsername;Pwd=MyPassword;"
"Provider=MSDASQL;Driver={SQL Server};Server=MyServerName;Database=MyDatabaseName;Uid=MyUsername;Pwd=MyPassword;"
"Provider=MSDASQL;PersistSecurityInfo=False;Trusted_Connection=Yes;Data Source=MyDSN;catalog=MyDatabase;"
"Provider=MSOLAP;Data Source=MyOLAPServerName;Initial Catalog=MyOLAPDatabaseName;"
"Provider=MSOLAP;Data Source=http://MyOLAPServerName/;Initial Catalog=MyOLAPDatabaseName;"
"Provider=MSOLAP;Data Source=https://MyOLAPServerName/;Initial Catalog=MyOLAPDatabaseName;"
"Provider=MSDAORA;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;"
"Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;"
"Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=/;Password=;"
"Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;OSAuthent=1;"
"Provider=vfpoledb;Data Source=C:\DatabasePath\MyDatabase.dbc;"
"Driver={Client Access ODBC Driver (32-bit)};System=myAS400;Uid=myUsername;Pwd=myPassword;"
"Driver={Sybase System 10};Srvr=MyServerName;Uid=MyUsername;Pwd=myPassword;"
ODBC;Driver=Sybase SQL Anywhere 5.0;DefaultDir=C:\DatabasePath\;Dbf=C:\SqlAnyWhere50\MyDatabase.db;Uid=MyUsername;Pwd=MyPassword;Dsn="";