Related questions
How to fill Dataset with multiple tables?
I'm trying to fill DataSet which contains 2 tables with one to many relationship.
I'm using DataReader to achieve this :
public DataSet SelectOne(int id)
{
DataSet result = new DataSet();
using (DbCommand command = Connection.CreateCommand())
{
command.CommandText = "select * from table1";
var param = …
Reading DataSet
How do I read data from a DataSet in WPF? I have a train schedule table with just 2 columns and I want to be able to read the departure times and calculate when the next train is leaving. For example, …
How to test if a DataSet is empty?
I'm modifying someone else's code where a query is performed using the following:
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(sqlString, sqlConn);
da.Fill(ds);
How can I tell if the DataSet is empty (i.e. no results were …