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
Does dapper use ado.net?
What is ado net stands for?
Explain ODP.net
What is linq and entity framework?
How to read data with the sqldatareader ?
What is ado code?
What is the difference between linq and ado.net?
What two types of data providers does ADO.NET supply? What determines which one you should use?
Which object holds only data and does not interact with data source?
How to work with disconnected data - the dataset and sqldataadapter?
Explian About DataAdapters
What is ole2 format?
What is difference between datagridview and datagrid control in winforms?
Why edit is not possible in repeater?
What is shadow copy?