What is the purpose of the SelectCommand property in a DataAdapter?

  • It specifies the SQL command to retrieve data from the database
  • It specifies the database connection string
  • It specifies the name of the database table to work with
  • It specifies the primary key of the database table
The SelectCommand property of a DataAdapter is used to specify the SQL command that retrieves data from the database. This command is executed when the DataAdapter's Fill method is called to populate the DataSet with data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *