I\'m adapting some code that someone else wrote and need to return a DataTable for time\'s sake.
I have code like this:
using (SqlCommand command = n
By using a DBDataAdapter
excerpt from ms documentation
// Create the DbDataAdapter. DbDataAdapter adapter = new DbDataAdapter(); adapter.SelectCommand = command; // Fill the DataTable. DataTable table = new DataTable(); adapter.Fill(table);