i have a question in invalid operation exception. it says that " ExecuteReader Connection is closed and must be open
PHP Code:
SqlConnection conn = new SqlConnection("Server=localhost\\SqlExpress;" +
"Database=db;Integrated Security=True");
SqlCommand comm = new SqlCommand("SELECT EmpID, Name FROM Employee", conn);
SqlConnection conn = new SqlConnection("Server=localhost\\SqlExpress;" +
"Database=db;Integrated Security=True");
SqlCommand comm = new SqlCommand("SELECT EmpID, Name FROM Employee", conn);
comm.Connection.Open();
SqlDataReader reader = comm.ExecuteReader();