vb数据库编程

dtysam 2003-12-05 03:34:28
需求对象的具体使用方法和属性.
谢谢各位!
...全文
26 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
dtysam 2004-01-06
  • 打赏
  • 举报
回复
用msdn获得
klbt 2003-12-11
  • 打赏
  • 举报
回复
友情up
dtysam 2003-12-05
  • 打赏
  • 举报
回复
有关ado对象中各对象的属性、方法
饮水需思源 2003-12-05
  • 打赏
  • 举报
回复
dim ac_tmp as new adodb.connection
dim ar_tmp as new adodb.recordset

With ac '数据库连接
If .State = adStateOpen Then .Close
.ConnectionString = "driver=SQL Server;server=" & 计算机名或IP地址& ";uid=sa;pwd=;database=" & 数据库名称
.CommandTimeout = 120
.Open
End With

if ar_tmp.state=adstateopen then ar_tmp.close
'打开数据表
ar_tmp.open "select * from tablename ",ac_tmp,adopenkeyset,adlockreadonly
set mshflexgrid.datasource=ar_tmp
set ar_tmp=nothing '销毁对象
set ac_tmp=nothing

1,216

社区成员

发帖
与我相关
我的任务
社区描述
VB 数据库(包含打印,安装,报表)
社区管理员
  • 数据库(包含打印,安装,报表)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧