MCQOPTIONS
Saved Bookmarks
| 1. |
You are creating an ASP.NET application for XYZ. The company data is stored in a Microsoft SQL Server 6.5 database. Your application generates accounting summary reports based on transaction tables that contain million of rows._x005F_x000D_ You want your application to return each summary report as quickly as possible. You need to configure your application to connect to the database and retrieve the data in a away that achieves this goal._x005F_x000D_ What should you do? |
| A. | Use a SqlConnection object to connect to the database, and use a SqlCommand object to run a stored procedure that returns the data. |
| B. | Use an OleDbConnection object to connect to the database, and use an OleDbCommand object to run a stored procedure that returns the data. |
| C. | Configure SQL Server to support HTTP access, and create an XML template to run a stored procedure that returns the data in XML format. |
| D. | Use COM interop to create an ADODB.Connection object, and use an ADODB.Command object to run a SQL statement that returns the data. |
| Answer» C. Configure SQL Server to support HTTP access, and create an XML template to run a stored procedure that returns the data in XML format. | |