When using a data reader, what is the typical sequence of operations for reading data?

  • Execute the query, Open the connection, Close the connection, Read the data
  • Execute the query, Read the data, Close the connection, Open the connection
  • Open the connection, Close the connection, Execute the query, Read the data
  • Open the connection, Execute the query, Read the data, Close the connection
When using a data reader, the typical sequence of operations involves opening the connection to the database, executing the query to retrieve data, reading the data sequentially, and then closing the connection. This sequence ensures efficient data retrieval and resource management.
Add your answer
Loading...

Leave a comment

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