Westonci.ca is your go-to source for answers, with a community ready to provide accurate and timely information. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.
Sagot :
Answer:
Fill method of a data adapter
Explanation:
This question is an illustration of C# Winforms and C# asp.net languages.
The following illustration works for all databases but let's assume we're dealing with MySql Database.
To store the results in a dataset, you have to
- Create a data table DataTable dt = new DataTable();
- Create a command (MySqlCommand cmd = new MySqlCommand(.......)
- Bridge the dataset and the database by using a data adapter MySqlDataAdapter msda = new MySqlDataAdapter(....)
- Lastly, fill the method of the data adapter using msda.Fill(dt)
Hence, (a) is correct
Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. We hope this was helpful. Please come back whenever you need more information or answers to your queries. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.