asked on
public void getAllCalls()
{
SqlConnection con = default(SqlConnection);
SqlCommand comm = default(SqlCommand);
con = new SqlConnection("Server=Tariq; Database=HelpDesk;Integrated Security=True");
comm = new SqlCommand("Select * from Calls", con);
con.Open();
SqlDataReader reader = comm.ExecuteReader();
while (reader.Read())
{
myCallsList.Add (reader("Call"));
}
reader.Close();
con.Close();
}
}