logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What are the usages of the Command object in ADO.NET?


  • Correct Answer
  • The following are the usages of the Command object in AD0NET: The Command object in AD0NET executes a command against the database and retrieves a DataReader or DataSet object => It also executes the INSERT, UPDATE, or DELETE command against the database => All the command objects are derived from the DbCommand class => The command object is represented by two classes: SqlCommand and OleDbCommand => The Command object provides three methods to execute commands on the database: => The ExecuteNonQuery() method executes the commands and does not return any value => The ExecuteScalar() method returns a single value from a database query => The ExecuteReader() method returns a result set by using the DataReader object 


  • Technology problems


    Search Results


    • 1. What are the usages of the Command object in ADO.NET?
    • Discuss
    • 2. Explain ADO.NET in brief.
    • Discuss
    • 3. How can you prevent a class from overriding in C# and Visual Basic?
    • Discuss
    • 4. What is the syntax to inherit from a class in C#?
    • Discuss
    • 5. Does .NET support multiple inheritance?
    • Discuss
    • 6. What is Dynamic Language Runtime (DLR)?
    • Discuss
    • 7. What is ASP.NET?
    • Discuss
    • 8. What is the basic difference between ASP and ASP.NET?
    • Discuss
    • 9. How can you send an email message from an ASP.NET Web page?
    • Discuss
    • 10. What is the code-behind feature in ASP.NET?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment