Archive: How to get result from OSQL query?


How to get result from OSQL query?
In query with OSQL syntax is ok,but how to get result?
After exec
Pop $0
DetailPrint $0
and result is zero(succes).....
So how to get selected value?


ExecDos::exec /TOSTACK
Pop
Pop

or
nsExec::ExecToStack
Pop
Pop

Stu


the results is:
ver_prop_option
------------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------
3.1.5




(1 row affected)

Completed

I need only "3.1.5"


Use more Pop instructions.

Stu


What are you mean with "Use more Pop instructions." ?????


You can also try the mssql plugin (http://nsis.sourceforge.net/MSSQL_OLEDB_plug-in).
Better control on query and results
Stefano


The first Pop pops the exit code off the stack. Subsequent Pop instructions read lines of output (only for ExecDos::exec /TOSTACK).

Stu