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
What is a control toolbox?
What is a sqldataadapter?
Why is ADO.NET serialization slower than ADO ?
What is the DataTableCollection?
What is a serialized object?
Explain the role of data provider in ado.net?
What we do with the object of ado.net dataset after using it?
What is ole db and odbc?
What is the difference between typed and untyped dataset?
How to add a check box or a dropdown list to a column in a datagrid?
What is the difference between statement and preparedstatement interface?
What is the difference between Datareader and Dataset?
What is the difference between Command and CommandBuilder object?
What is connection string?
What is oledb connection?