Put the resutl of an SQL query in an array
Hi Guys,
I have been trying all morning to make a "select" function that returns an array containing the results of a MSSQL query.
This is to ease up all the complexity of the connection and the rest.
I tried saving the result to a file using SaveToFile, but this save binary data instead of text.
Also tried using the FieldValues() method which is also supposed to return a full row, but complains about an invalid number of parameters, which I don't understand as it is supposed to return a full row not a single column value of a row...
I tried plenty of other stuff but nothing does it. I'm getting very frustrated as this is basic stuff and should work out of the box.
I don't want to have to pass more than the query I'm making, so no column name or anything, just the query.
Thank for your help
Philippe