Select from following answers:- ExecuteScaler method
- ExecuteReader method
- dataset.tables[0].rows[0]["column_name"]
- All Above
Above all approaches are used to get Single column values.
For ex:-
Object employee_id = cmd.ExecuteScaler();
employee_id = Convert.ToInt32(employee_id);
int employee_id = Convert.toInt32(dataset.tables[0].rows[0]["employee_id"]);
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator