Jump to content

Get query results - (Moved)


Recommended Posts

Hi,
I have a working query, tested by copying the output of the $query variable in AutoIT to SQL Management Studio.
The output of the above query in SQL studio is a single record (line) and seven columns. All are text.
In AtutoIT, I execute the query  -   $result = $adCN.Execute($sQuery)     and fail in getting the results.
the line  -  $sString = $result.getstring()    gives me the error:  "The requested action with this object failed".
When i hover my mouse over the variable $result a popup designates it's an object which in turn confirms the code is OK up to that point.
Why is Getstring() not working? What else should I do?

Thank you for your help,
Amos

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...