I have a problem with running of compiled *.exe script on another PC.
This issue appears after adding following code:
If $msg = $button Then $output = '' $conn = ObjCreate("ADODB.Connection") $DSN = "DRIVER={SQL Server};SERVER=name;DATABASE=name;UID=name;PWD=pass;Trusted_Connection=False;" $conn.Open($DSN) $rs = ObjCreate( "ADODB.RecordSet" ) $rs.Open( "select * from x", $conn ) if $rs.RecordCount Then while not $rs.EOF $output &= $rs.Fields(0).Value & ' '& $rs.Fields(1).Value & @CRLF $rs.MoveNext WEnd EndIf GUICtrlSetData($editgui, $output) $conn.close EndIf
This script connects to SQL server, recieve data and send to Edit control GUI.
This script is running fine in *.au3. It's running fine in compiled *.exe status. But only on PC where I developed it.
When I try to run it on different PC it shows following: "Error: The requested action with object has failed.". I was trying to add error handler but it didn't show me anything in *.exe build. Only provided message.
Did I miss something? I thought compiled script should contains all required functions and libraries. No?





