Jump to content

I have an error with _ADO_Connection_OpenConString of ado.au3 version 3.3.10.2++


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...