FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ADO for SQL Server and Array
Posts: 470
Joined: Fri Feb 05, 2010 11:30 AM
ADO for SQL Server and Array
Posted: Wed Jul 31, 2024 11:13 AM

Hello friends!

I need to communicate with a SQL Server.

I create the connection, and do RecordSet:

cSql:="select * from clientes"

oRs:=FW_OpenRecordSet(oCn,cSql)

and I run through the result with:

DO WHILE !oRs:Eof()

..

..

oRs:MoveNext()

ENDDO

oRw:Close()

With MySql I use the "fillarray" and my query is dumped into an array,

in this case, with "FW_OpenRecordSet" you can generate the query directly

in an array??

Thank you so much!

Roberto

Univ@c I.S.I.
Desarrolladores de Software
http://www.elcolegioencasa.ar
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: ADO for SQL Server and Array
Posted: Wed Jul 31, 2024 12:30 PM

Hi,

I think this function is the one you need

aData := RsGetRows( oRs ) // retrive data as array

Posts: 470
Joined: Fri Feb 05, 2010 11:30 AM
Re: ADO for SQL Server and Array
Posted: Wed Jul 31, 2024 12:41 PM

Excelent!!!!!

Thank you so much!

Univ@c I.S.I.
Desarrolladores de Software
http://www.elcolegioencasa.ar

Continue the discussion