| 70-306 Exam |
| 70-306 - Exam Information |
| Question of the day |
You develop a Windows-based inventory management application that interacts with a Microsoft SQL Server database. Your application enables users to update information about items in inventory. Each time a user changes an inventory item, your application executes a SQL Server stored procedure IT departmentSP to update rows in the database. IT departmentSP will run many times during each user session. Your application will use a SqlCommand object to execute IT departmentSP. You must revise your code so that the use of this object optimizes query performance. What should you do?
Answer(s)
Call the SqlCommand.Prepare method before the first call to SqlCommand.ExecuteNonQuery.