string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\path\\to\\your\\database.accdb";string query = "SELECT * FROM Customers";OleDbConnection connection = new OleDbConnection(connectionString);OleDbDataAdapter adapter = new OleDbDataAdapter(query, connection);DataSet dataSet = new DataSet();adapter.Fill(dataSet, "Customers");ReportDataSource reportDataSource = new ReportDataSource("Customers", dataSet.Tables[0]);reportViewer1.LocalReport.DataSources.Clear();reportViewer1.LocalReport.DataSources.Add(reportDataSource);reportViewer1.RefreshReport();
What is the purpose of the above code?
A) To retrieve data from a Microsoft Access database and display it in a report viewer.
B) To retrieve data from a MySQL database and display it in a report viewer.
C) To retrieve data from a SQL Server database and display it in a report viewer.
D) To retrieve data from a PostgreSQL database and display it in a report viewer.