[企业管理] 用C++链接ACCESS

[复制链接]
发表于 2022-9-22 15:27:16
使用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

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表