Hi Guys
i need a little bit of help and advice on some code im trying to use to retrive data from sql 2008 r2 i can connect to my data base but cant seem to get any data back
im using MYsql from cdkid and have attached the file for you guys to have a look though
Please Help
this is the error i keep getting
C:\Program Files (x86)\AutoIt3\Include\Mysql.au3 (52) : ==> The requested action with this object has failed.:
Return $oConnectionobj.execute ($sQuery)
Return $oConnectionobj.execute ($sQuery)^ ERROR
$sUsername = "sa"
$sPassword = "####"
$sDatabase = "Testing"
$sServer = "(local)"
$sDriver = "{SQL Server}"
$iPort = 3306
$sql = _MySQLConnect($sUsername, $sPassword, $sDatabase, $sServer, $sDriver) ; $iPort)
;msgbox(0,"connected to server", $sql & ' - Error ' & @error,2) ;=> confirm connection works
$result = _Query($sql,$sQuery) msgbox (0,@error,$result.field(" Name ").value,0) ;=> Value from the Sql query _MySQLEnd($sql)Mysql.au3