DataSet
1. Create a database connection
2. Store query in a DataAdapter
3. Populate the Dataset with the Fill method
4. Create a DataView
5. Bind the DataView to list-bound control
DataReader
1. Create a database connection
2. Open a database connection
3. Store query in SqlCommand
4. Populate the DataReader with the ExecuteReader command
5. Call the Read method for each record, and the method Get for each field.
6. Manually display data
7. Close the DataReader and the connection
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment