摘要: 开始的时候定义ADODB.Connection类型,会提示一个错误,是因为没有添加adodb的索引,在项目上添加索引,进入索引界面后,在com项中找到adodb引用,点击确定就可添加成功 阅读全文
posted @ 2011-07-30 10:54 爱测试的猫咪 阅读(3671) 评论(0) 推荐(0)
摘要: 1 Public Sub connect() 2 Dim pass As Boolean 3 pass = False 4 Dim conn As New ADODB.Connection 5 Dim rs As New ADODB.Recordset 6 Dim constr As String 7 Dim i As Integer 8 Dim sql As String 9 constr = "driver={SQL Server};server=PC-201105311336\SQLEXPRESS;Uid=sa;Pwd=123456;Database=jiaxiaoai&quo 阅读全文
posted @ 2011-07-30 10:44 爱测试的猫咪 阅读(5223) 评论(0) 推荐(0)