Display multiple SQL query results as array with RecordSet Object in Autoit -


i trying read multiple results after sql query adodb object in auoit.

$sqlcon = objcreate ("adodb.connection") ; create sql connection $sqlcon.open("driver={sql server};" & $my_pass) ; connect required credentials $rs = objcreate("adodb.recordset") ; creating record set object $rs.open($my_query, $sqlcon) ; executing query  $rs.getstring ;this return (for example 4) records in 1 string 
  1. how read 1 specified record? $rs.recordnumber(0).getstring??
  2. how number of records returned? $rs.recordcount ??
  3. how place records array 1 one?

now found method getrosw() job looking for

$arr = $rs.getrows() $records_number = ubound($arr) _arraydisplay($arr) 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -