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 |
ADO and ADO.NET differences?
Difference between ADO and ADO.Net
What is difference between ado and other data object?
What is ado or jdbc?
What is the use of command objects?
once data is fetched into dataset connection gets closed. but in datareader connection is always maintained...then why datareader is fast and mainly recommended ?
How can we perform transactions in .net?
What is the difference between sqldatareader and sqldataadapter?
What is Pooling? what is data pooling? what is sql pooling?
How does ado.net work?
What is acid in ado.net?
What is the use of SqlCommand object?