找回密码
 立即注册
the连接ConnectionACCESS | 企业管理 2022-09-22 97 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
使用ADO连接数据库
连接ACCESS数据库ACCESS是一个联系型桌面数据库管理系统,它可以用来建立中小类型的数据库使用系统,使用非常广泛.下面介绍如何使用ADO连接ACCESS数据库.在连接数据库时,需求使用Connection目标的Open方法打开与数据源的连接.
语法:Connectoin.openConnectionstring,userID,password,openoptions
Open方法的参数表说明如下
参数
ConnectionString
(可选)字符串,包括连接信息,参照(ConnectionSting)属性可获得有效调协的详细信息
UserID
(可选)字符串,包括建立连接时所使用的用户称号
Password
(可选)字符串,包括建立连接时所用的密码
openoptions
(可选)ConnectionEnum值.如果调协为adConnectoAsync,则异步打开连接,当连接可用时将生成ConnectComplete事情

(Use ADO to connect to the database
Connecting to the ACCESS database ACCESS is a contact-type desktop database management system. It can be used to build small and medium-sized database systems and is widely used. The following describes how to use ADO to connect to the ACCESS database. When connecting to the database, you need to use the Open method of the Connection target. Open a connection to the data source.
Syntax: Connectoin.openConnectionstring,userID,password,openoptions
The parameter table of the Open method is described as follows
parameter
ConnectionString
(Optional) String, including connection information, refer to the (ConnectionSting) property for details on valid tuning
UserID
(optional) string including the username to use when establishing the connection
Password
(optional) string, including the password used to establish the connection
openoptions
(optional) ConnectionEnum value. If the coordination is adConnectoAsync, the connection is opened asynchronously, and a ConnectComplete event will be generated when the connection is available)

[下载]15271760515.rar




上一篇:VC的一本好书
下一篇:短消息点对点协议smpp3.4