Phil Posted May 3, 2005 Share Posted May 3, 2005 Hi all, Is it possible with Autoit to do some read, update and delete on table coming from a sql server database or any other via ODBC ??? Thanks in advance. Link to comment Share on other sites More sharing options...
Andre Posted May 3, 2005 Share Posted May 3, 2005 in short, but NO. Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
SvenP Posted May 3, 2005 Share Posted May 3, 2005 in short, but NO.Andre<{POST_SNAPBACK}>Andre,That's not quite right. With the latest AutoIt3 beta version you can use ADO to access ODBC databases.Here is some pseudo code borrowed from 'dwerznec' who posted it in the 'developers' forum (http://www.autoitscript.com/forum/index.php?showtopic=10627&st=0)$DSN_Connect="Your DSN here" Func getDistinct($DSN_Connect) $adoCon = ObjCreate ("ADODB.Connection") $adoCon.Open ($DSN_Connect) $adoRs = ObjCreate ("ADODB.Recordset") $adoSQL = "SELECT DISTINCT Gerätetyp FROM [HW-Invent]" $adoRs.CursorType = 2 $adoRs.LockType = 3 $adoRs.Open($adoSql, $adoCon) With $adoRs If .RecordCount Then While Not .EOF $cmboVal[2] = $cmboVal[2] & .Fields("Gerätetyp").Value & "|" .MoveNext WEnd EndIf EndWith $adoCon.Close EndFuncRegards,-Sven Link to comment Share on other sites More sharing options...
JSThePatriot Posted May 3, 2005 Share Posted May 3, 2005 It may not be the smoothest way but there are also other programs out there that can use SQL to manipulate a database, that can be automated using AutoIt.This is what I have used in the past.AnalogX SQLCMDThere are other SQLCMD.exe programs out there, that may be more updated. In my few minutes of looking the above back up I noticed that either there are some other ones that have copied the name, or that the articles are talking about that one.JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
ReFran Posted May 3, 2005 Share Posted May 3, 2005 in short, but NO.Andre<{POST_SNAPBACK}>That's not quite right ...With the ADO Object (OleDB32.dll), which is installed on every WinPC - at least W98SE and higher -, you can query every DB with any scripting language.Best regards, Reinhard Link to comment Share on other sites More sharing options...
Phil Posted May 5, 2005 Author Share Posted May 5, 2005 Thanks. I will try to have a particular look at (OleDB32.dll), !!! Link to comment Share on other sites More sharing options...
scriptkitty Posted May 5, 2005 Share Posted May 5, 2005 I gave an example here:http://www.autoitscript.com/forum/index.php?showtopic=11147has to use the beta version of autoit atm. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now