How do we invoke queries from the application ?
Answer Posted / vivek
Command object is only one to execute queries in the
backend.
Ex:
SqlConnection cn=new SqlConnection();
SqlCommand cmd=new SqlCommand("SELECT * FROM EMP",cn);
cmd.ExecuteNonQuery();
cmd.ExecuteReader();
cmd.ExecuteScalar();
Cmd.ExecuteXmlReader();
command object has only these 4 methods to execute queries
in the backend.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the overview of ado.net architecture?
What is read only and forward only in ado.net?
Explain how to create dynamic gridview?
What is the difference in an abstract class and an interface?
Explian About DataAdapters
Why do we serialize data?
What is dataset and datatable in ado.net?
What is ado.net and its features?
What is execute scalar in ado.net?
The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx
What is ole word?
What is ado control?
What is data view and variable view?
What do you mean by performing asynchronous operation using command object?
What is a datagridview?