Command object in ADO DOT NET
List the usages of Command object in ADO.NET?
Expert
The usages of the Command object in AD0.NET are as follows: i. The ExecuteReader() method: It returns the result set by using a DataReader object.
ii. The ExecuteNonQuery() method: It executes a commands and does not return any value,
iii. The Command objects in the AD0.NET performs a command against a database and regain a DataReader or a DataSet object.
iv. It performs DELETE, INSERT, or UPDATE, command against a database.
v. Command object is represented by the two classes: OleDbCommand and SqlCommand.
vi. Command object gives three methods to perform commands on a database
vii. The ExecuteScalar() method returns single value from the database query.
viii. Each command objects are derived from the DbCommand class.
Explain keywords by giving example.
Briefly describe garbage collection? Differentiate between garbage collections in .NET 4.0 and previous versions?
Write the difference between the Procedural and Object-oriented programming?
What is the way to identify that a Page is Post Back?
Illustrate the terms Response dot Redirect as well as Server dot Transfer?
What are validation controls? How many validation controls are present in ASP.NET 4.0?
Explain the function of a CustomValidator control?
Write about the Dynamic update?
Explain the importance of the Strong Name tool?
Explain the several methods required by the DataSet object for generating the XML?
18,76,764
1940545 Asked
3,689
Active Tutors
1430722
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!