in reply to Re^2: how to save data to new array after retrieving from sql server
in thread how to save data to new array after retrieving from sql server

Hello again mhoang,

No problems no worries, to be honest I also prefer using selectall_arrayref instead of bind_columns. But in cases that you are retrieving huge amount of data the only way to proceed is through bind_columns. Alternatively you will be utilizing huge amount of memory until all data have been processed and stored to the selectall_arrayref, when the other way you are just retrieving line by line the data. If in your case the retrieved data are not huge you should be fine.

From the documentation bind_columns:

# Column binding is the most efficient way to fetch data

Hope this helps, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!