如何从Com连接Oledb数据库? [英] How Do I Connect Oledb Database From Com ?

查看:97
本文介绍了如何从Com连接Oledb数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用名为AutoIt的脚本语言。我可以用这种语言创建一个带有ObjCreate(ProgID)的对象。我可以连接到OleView.exe中列出的几乎任何对象模型。现在我需要将OleDb对象与此函数连接起来。我可以很容易地得到ADODB.Connection的对象但是我无法获得Oledb.OleDbConnection的对象模型。我也在OleView.exe中找不到OleDb对象。有人请帮忙。

Hi all,
I working with a scripting language named AutoIt. I can create an object with "ObjCreate("ProgID")" in this language. And i can connect to Almost any object model listed in OleView.exe. Now i need to connect OleDb object with this function. I can easily get the object of "ADODB.Connection" But i can't get the object model of Oledb.OleDbConnection. I can't find OleDb object in OleView.exe too. Somebody please help.

推荐答案

你需要使用带有ADODB连接的ADODB记录集



oledb.oledbconnection是.net
you'll need to use an ADODB recordset with an ADODB connection

oledb.oledbconnection is .net


您好@barneyman,

我已成功连接oldeb提供程序。但是我怎么知道ADODB.Recordset.Fields(0)列中有多少行。我试过.RecordCount。但它给了我-1(减1)。怎么办?
Hi @barneyman,
I have successfully connect with an oldeb provider. But how do i know how many rows are in the ADODB.Recordset.Fields(0) column. I have tried ".RecordCount". But it is giving me -1(minus one). What to do ?


这篇关于如何从Com连接Oledb数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆