1.
You create the BillingByPostalCode stored procedure by using the following Transact-SQL code. CREATE PROCEDURE BillingByPostalCode (@BeginPostalCode char(5), @EndPostalCode char(5)) AS SELECT AddressLine1, AddressLine2, City, StateID, PostalCode FROM Address WHERE PostalCode BETWEEN @BeginPostalCode and @EndPostalCode During performance testing, you discover that the performance of this stored procedure is not fulfilling requirements. You need to optimize this stored procedure. Which optimization strategy should you use?
2.
You are designing a stored procedure that will be exposed to the companys energy trading partners. These partners are assigned minimal permissions in the BAP database. This procedure contains logic that constructs dynamic SQL that requires elevated permissions. You must provide the appropriate permissions. What should you do?
3.
You are testing the PlantGeneration stored procedure. When you query for the current months data, query performance is exceeding 30 seconds. You need to correct the performance problem. What should you do?
4.
You are executing performance testing on the BAP application. You discover that the system is not performing according to requirements. In addition, you discover that there is excessive disk activity. You need to find out which stored procedures are causing the excessive disk activity. Which Transact-SQL statement should you run prior to executing each stored procedure that you suspect is performing poorly?
5.
You need to resolve the problems with the routine named Routine112. What should you do?
6.
You need to optimize the query against the ReservationRequests table to fulfill the technical requirements. What should you do?
7.
You need to implement a solution to the transactions that add and modify rows based on the CustomerID column to fulfill the technical requirements. What should you do?
8.
You need to allow the new version of the application to run from the remote offices. All SQL Server 2005 features must also be available through this connection. What should you do?
9.
You need to design the retrieval of the airfares for the new version of the application to fulfill the business requirements. What should you do?
10.
You need to design the process for deleting customer accounts to fulfill the business requirements. What should you do?