6
Reply

What is the use of command Object?

Rahul  Pandey

Rahul Pandey

Jul 03, 2013
2.1k
0

    Command object is used to initialize database commands.SqlCommand cmd = new SqlCommand("select * from employee",conn); here we are passting a sqlcommand as s string and also a connection object as parameter to the SqlCommand instance constructor. and those are gets initialized in the instance constructor. when we call the other merthods of commad class such as ExecuteReader() ExecuteScalar() and ExecuteNonQuery() methods will execute those commands

    Srinivas Pabballa
    August 28, 2015
    0

    Command is used to execute almost any SQL command from within the .net application.

    Vithal Wadje
    December 31, 2014
    0

    The ADO Command object is used to execute a single query against a database. The query can perform actions like creating, adding, retrieving, deleting or updating records.If the query is used to retrieve data, the data will be returned as a RecordSet object. This means that the retrieved data can be manipulated by properties, collections, methods, and events of the Recordset object.The major feature of the Command object is the ability to use stored queries and procedures with parameters.

    Munesh Sharma
    April 12, 2014
    0

    SQL Command is ADO.Net Object and it used for execute the query,Stored Procedures and get the result. SQLCommand object Return Integer value.

    Pramod Lawate
    August 26, 2013
    0

    command object is used to execute any backend queries or stored procedure from the presentation layer.

    Poornima
    August 06, 2013
    0

    command object is used to provide the sql command from fron end.

    Srikanth Reddy
    July 09, 2013
    0