Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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.
Posted
Comments
Afzaal Ahmad Zeeshan 25-Jul-15 5:02am    
You are writing a scripting language, but don't know how to work around with the language it would translate into?

you'll need to use an ADODB recordset with an ADODB connection

oledb.oledbconnection is .net
 
Share this answer
 
Comments
F-ES Sitecore 26-Jul-15 19:55pm    
Not sure why this was down-voted, it's the right answer.
Vinod Kc 30-Jul-15 3:58am    
Who are the voters ? i didn't do anything
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 ?
 
Share this answer
 
Comments
F-ES Sitecore 26-Jul-15 19:54pm    
Google "recordcount -1". Recordcount is only populated after all results have been processed. The best way of doing this is to use a client-side cursor, that forces all the results to load before you use them so you always have a recordcount.

http://www.xtremevbtalk.com/showthread.php?t=213424
Vinod Kc 30-Jul-15 3:55am    
Thank you. Let me try. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900