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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -