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
- how read 1 specified record?
$rs.recordnumber(0).getstring
?? - how number of records returned?
$rs.recordcount
?? - how place records array 1 one?
now found method getrosw() job looking for
$arr = $rs.getrows() $records_number = ubound($arr) _arraydisplay($arr)
Comments
Post a Comment