ImageVerifierCode 换一换
格式:DOCX , 页数:18 ,大小:22.01KB ,
资源ID:21829198      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/21829198.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(常用ADO连接数据库字符串大全文档格式.docx)为本站会员(b****7)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

常用ADO连接数据库字符串大全文档格式.docx

1、ODBC Driver for ExcelODBC Driver for MySQLODBC Driver for OracleODBC Driver for ParadoxODBC Driver for SQL ServerODBC Driver for SybaseODBC Driver for Sybase SQL AnywhereODBC Driver for TextODBC Driver for TeradataODBC Driver for Visual FoxProOLE DB Data Link Connections Data Link File (UDL)OLE DB D

2、ata Provider Connections OLE DB Provider for AS/400OLE DB Provider for Active Directory ServiceOLE DB Provider for DB2OLD DB Provider for Internet PublishingOLE DB Provider for Index ServerOLE DB Provider for Microsoft JetOLE DB Provider for ODBC DatabasesOLE DB Provider for Oracle (From Microsoft)O

3、LE DB Provider for Oracle (From Oracle)OLE DB Provider for Simple ProviderOLE DB Provider for SQL ServerRemote Data Service (RDS) Connections RDS Data Control - Connect PropertyRDS Data Control - URL PropertyADO URL Connections ADO RecordsetMS Remote Provider Connections MS Remote - Access (Jet)MS R

4、emote - SQL ServerData Shape Provider Connections MS DataShape - SQL Server.NET Managed Provider Connections SQL Client .NET Managed Provider (System.Data.SqlClient)OLE DB .NET Managed Provider (System.Data.OleDb)ODBC .NET Managed Provider (System.Data.ODBC)ODBC DSN ConnectionsUsing an ODBC DSN (Dat

5、a Source Name) is a two step process.1) You must first create the DSN via the ODBC Data Source Administrator programfound in your computers Control Panel (or Administrative Tools menu in Windows 2000).Make sure to create a SYSTEM DSN (not a USER DSN) when using ASP.Note: You can also create the DSN

6、via VB code.2) Then use the following connection string - with your own DSN name of course. ;-)ODBC - DSNoConn.Open DSN=AdvWorks; & _ Uid=Admin;Pwd=;You can also create and use a File DSN. Then use the following ADO Connection string:ODBC - File DSNFILEDSN=c:somepathmydb.dsn;For more information, se

7、e: About ODBC data sources andHow to Use File DSNs and DSN-less Connections The problem with DSN is that Users can (and will) modify them (or delete by mistake),then your program wont work so well. So its better to use a DSN-Less or OLE DB Providerconnection string with a Trusted Connection if possi

8、ble!ODBC DSN-Less ConnectionsODBC Driver for AS/400Driver=Client Access ODBC Driver (32-bit);System=myAS400;Uid=myUsername;Pwd=myPassword; A Fast Path to AS/400 Client/ServerFor Standard Security:Driver=Microsoft Access Driver (*.mdb);Dbq=c:somepathmydb.mdb;If you are using a Workgroup (System datab

9、ase):SystemDB=c:somepathmydb.mdw;, _admin, If MDB is located on a network share:Dbq=myServermySharemyPathmyDb.mdb; Microsoft Access Driver Programming ConsiderationsDriver=Microsoft dBASE Driver (*.dbf); DriverID=277;somepath; Specify the filename in the SQL statement. For example: oRs.Open Select *

10、 From user.dbf, oConn, , ,adCmdText MDAC 2.1 (or greater) requires the Borland Database Engine (BDE) to update dBase DBF files. (Q238431). dBASE Driver Programming ConsiderationsDriver=Microsoft Excel Driver (*.xls);DriverId=790;somepathmySpreadsheet.xls;DefaultDir=c: Microsoft Excel Driver Programm

11、ing ConsiderationsODBC Driver for MySQL (via MyODBC)To connect to a local databaseDriver=mySQL;Server=MyServerName;Option=16834;Database=mydb;To connect to a remote databaseServer=;Port=3306;Option=131072;Stmt=; Programs Known to Work with MyODBCFor the current Oracle ODBC Driver from Microsoft:Driv

12、er=Microsoft ODBC for Oracle;Server=OracleServer.world;For the older Oracle ODBC Driver from Microsoft:Driver=Microsoft ODBC Driver for Oracle;ConnectString=OracleServer.world; Connection String Format and AttributesDriver=Microsoft Paradox Driver (*.db);DriverID=538;Fil=Paradox 5.X;dbpath;Collating

13、Sequence=ASCII; MDAC 2.1 (or greater) requires the Borland Database Engine (BDE) to update Paradox ISAM fDBF files. (Q230126). Paradox Driver Programming ConsiderationsDriver=SQL Server; Database=myDatabaseName; For Trusted Connection security:Uid=; orTrusted_Connection=yes;To Prompt user for userna

14、me and passwordoConn.Properties(Prompt) = adPromptAlwaysDataBase=myDatabaseName; SQLDriverConnect (ODBC)If using the Sybase System 11 ODBC Driver:Driver=SYBASE SYSTEM 11;Srvr=myServerName;If using the Intersolv 3.10 Sybase ODBC Driver:Driver=INTERSOLV 3.10 32-BIT Sybase; Sybase System 10 ODBC Driver

15、 Reference GuideODBC; Driver=Sybase SQL Anywhere 5.0;Dbf=c:sqlany50mydb.db;Dsn=; Including the DSN tag with a null string is absolutely critical or else you get the dreaded -7778 error. Sybase SQL Anywhere User GuideProvider=Teradata;DBCName=MyDbcName;Database=MyDatabaseName;For more information, se

16、e Teradata ODBC DriverDriver=Microsoft Text Driver (*.txt; *.csv);somepath;Extensions=asc,csv,tab,txt;Persist Security Info=FalseoRs.Open Select * From customer.csv oConn, adOpenStatic, adLockReadOnly, adCmdText Text File Driver Programming ConsiderationsWith a database container:Driver=Microsoft Vi

17、sual FoxPro Driver;SourceType=DBC;SourceDB=c:somepathmySourceDb.dbc;Exclusive=No;Without a database container (Free Table Directory):SourceType=DBF;somepathmySourceDbFolder; Visual FoxPro ODBC Driver and Q165492OLE DB Data Link ConnectionsData Link File (UDL)For Absolute Path:File Name=c:somepathmyD

18、atabaseName.udl;For Relative Path:File Name=myDatabaseName.udl; HOWTO: Use Data Link Files with ADO Windows 2000 no longer contains the New | Microsoft Data Link menuanymore. You can add the Data Link menu back in the menu list by running theC:Program FilesCommon FilesSystemOle DBnewudl.reg reg file,then right-click on the desktop and select menu.Or you can also create a Data Link file by creating a text file and change itsfile extension to .udl, then double-click the file.OLE DB Provider ConnectionsOLE DB Provider for AS/400Provider=IBMDA400;Data source=myAS400;User Id=myUsername;

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1