How do we invoke queries from the application ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shwetha
by the namespace using System.Data.Sqlclient
by using Sqlcommand
Dim cmd as new Sqlcommand("Queries");
Is This Answer Correct ? | 4 Yes | 2 No |
Being fresher How would i answer to the question that what is your salary exception?
What is executenonquery ado.net?
What is the current version of entity framework?
What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?
What is the advantage of ado.net?
What is ado net stands for?
How can we serialize the dataset object?
What is shadow copy?
Explain acid properties?
Define data adapter?
What is the use of sqldatareader class?
What are the types of databinding?