C# return 3D array from SQL query
Posted on 2014-03-05
I'm new to C#. I'm migrating some code from VBA to a C# program, I want to pass a SQL query to a class and return an array of results.
so far I have the connection string and it's connecting the SQL db fine, I'm then passing a SQL query to a data reader, however I'm not sure on what I should do with the results.
I'm assuming there is a better process then simply looping through the recordset and building the array?