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 |
What are all the different methods under sqlcommand?
What are the steps in connecting to database ?
How to Read, Add, Update and Delete record in Entity Framework ?
What is sequence of code in retrieving data from database ?
3 Answers Accenture, BirlaSoft,
Differnces between oracle 9i and sql server?
2 Answers College School Exams Tests, Microsoft,
What are the advantages using ado.net?
We all know that Dataset is purely disconnected architechure, but we also know that we can update the changes made to the dataset can be updated in the backend database. when there is no connection how does the update happedn?
6 Answers Accenture, FastStream,
What does executereader return?
Why do we need ado.net?
what purpose of Indexing creating? directly we can search the reqired row with the help of query?what is the use of indexing?
Can we do database operations without using any of the ado.net objects?
Which provider is used to connect ms access, oracle, etc…?