fulvio_fabiani Posted August 9, 2022 Share Posted August 9, 2022 The error is very strange, if i launch script or compiled by clicking in the root folder no error, but if i launch from another folder there i se an error with @error = 4 and @extended = -2147352567. Is there anyone with some ideas about? Code: Local $sConnectionString_AUTOMI = 'DRIVER={' & $sDriver & '};SERVER=' & $sServer & ';DATABASE=' & $sDatabase & ';UID=' & $sUser & ';PWD=' & $sPassword & ';' Local $oConnection_AUTOMI $oConnection_AUTOMI = _ADO_Connection_Create() _ADO_Connection_OpenConString($oConnection_AUTOMI, $sConnectionString_AUTOMI) If @error = 0 Then Else Scrivi_Riga_Log("Errore sql: _ADO_Connection_OpenConString, codice errore:" & @error & " - " & @extended & " - " & $ADO_RET_FAILURE) MsgBox(0,"","Errore) Exit EndIf Thanks for the help. Link to comment Share on other sites More sharing options...
fulvio_fabiani Posted August 9, 2022 Author Share Posted August 9, 2022 Solved by self, it was a coding error with a file called without @ScriptDir and in which are written connection coorinates. Sorry! 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