QUESTION 91
DRAG DROP (Topic 8)
You are designing two stored procedures named Procedure1 and Procedure2.
You identify the following requirements:
Procedure1 must take a parameter that ensures that multiple rows of data can pass into the stored procedure.
Procedure2 must use business logic that resides in a Microsoft .NET Framework assembly.
You need to identify the appropriate technology for each stored procedure.
Which technologies should you identify?
To answer, drag the appropriate technology to the correct stored procedure in the answer area. (Answer choices may be used once, more than once, or not at all.)
Correct Answer:
QUESTION 92
You have an application that uses a view to access data from multiple tables. You need to ensure that you can insert rows into the underlying tables by using the view. What should you do?
A. |
Create an INSTEAD OF trigger on the view. |
B. |
Define the view by using the SCHEMABINDING option. |
C. |
Define the view by using the CHECK option. |
D. |
Materialize the view. |
Correct Answer: C
Explanation:
http://msdn.microsoft.com/en-us/library/ms180800.aspx http://msdn.microsoft.com/en-us/library/ms187956.aspx
QUESTION 93
You have a database that contains a user-defined function named Schema1.Udf1 and two tables named Schema1.Table1 and Schema1.Table2.
Schema1.Table1 has 1 million rows. The schema for Schema1.Table1 is configured as shown in the following table.
Schema1.Udf1 was defined by using the following code:
You need to write a query that will contain the following columns:
The solution must meet the following requirements:
Rows must be returned only if the function returns data.
The amount of time it takes the query to execute must be minimized.
Which query should you use?
A. |
Option A |
B. |
Option B |
C. |
Option C |
D. |
Option D |
Correct Answer: B
QUESTION 94
You have a database hosted on SQL Azure. You are developing a script to create a view that will be used to update the data in a table. The following is the relevant portion of the script. (Line numbers are included for reference only.)
You need to ensure that the view can update the data in the table, except for the data in Column1. Which code segment should you add at line 06?
A. |
WITH CHECK OPTION |
B. |
WITH VIEW_METADATA |
C. |
WITH ENCRYPTION |
D. |
WITH SCHEMABINDING |
Correct Answer: A
Explanation:
The question concerning the view that has a clause “WHERE Column1 = ‘City1’ is wrong. That’s not what the CHECK option is made for. Actually you will be able to update ONLY the rows satisfied by that WHERE clause, that is, only the rows with the Column1 being ‘City1’.
None of the answers are valid from that question. You need a trigger to achieve that.
http://msdn.microsoft.com/en-us/library/ms187956.aspx
QUESTION 95
DRAG DROP
You are planning two stored procedures named SProc1 and SProc2. You identify the following requirements:
SProc2 must return a status code.
You need to identify which options must be implemented to meet each stored procedure requirement. Which options should you identify?
To answer, drag the appropriate option to the correct requirement in the answer area. (Answer choices may be used once, more than once, or not at all.)
Correct Answer:
QUESTION 96
You have a Microsoft SQL Azure database.
You have the following stored procedure:
You discover that the stored procedure periodically fails to update HR.Employees.
You need to ensure that HR.Employees is always updated when up_employees executes.
The solution must minimize the amount of time required for the stored procedure to execute and the number of locks held.
What should you do?
A. |
Add the following line of code to line 05: SET TRANSACTION ISOLATION LEVEL SNAPSHOT |
B. |
Add the following line of code to line 13: WITH (UPDLOCK) |
C. |
Add the following line of code to line 05: SET TRANSACTION ISOLATION LEVEL SERIALIZABLE |
D. |
Add the following line of code to line 08: WITH (UPDLOCK) |
Correct Answer: D
QUESTION 97
You have a database named Database1. Database1 has two stored procedures named Proc1 and Proc2 and a table named Table1. Table1 has millions of rows.
Proc1 updates data in Table1. Proc2 reads data from Table1.
You discover that when Proc1 is executed to update more than 4,000 rows, Proc2 is blocked. The block affects all rows, including those that are not being updated by Proc1.
You need to ensure that when Proc1 is executing, Proc2 can access the data in Table1 that Proc1 is not updating.
What should you change Proc1 to do?
More than one answer choice may achieve the goal. Select the BEST answer.
A. |
Update less than 4,000 rows simultaneously. |
B. |
Use the PAGLOCK table hint. |
C. |
Wait for Proc2 to complete. |
D. |
Use the ROWLOCK table hint. |
Correct Answer: A
QUESTION 98
You need to implement a solution that meets the data recovery requirements. You update each stored procedure to accept a parameter named @transactionID. What should you add next to the beginning of each stored procedure?
A. |
SAVE TRANSACTION WITH MARK @transactionID |
B. |
ROLLBACK DISTRIBUTED TRANSACTION @transactionID |
C. |
BEGIN TRANSACTION WITH MARK @transactionID |
D. |
COMMIT TRANSACTION @transactionID |
Correct Answer: C
QUESTION 99
You plan to create a database that has multiple tables. The tables will contain product information. Each product has a stock-keeping unit (SKU). You need to recommend a solution to ensure that each SKU starts with the letters “ADV” and is followed by 10 digits. The solution must minimize the amount of development effort required. What should you include in the recommendation?
A. |
A FOREIGN KEY constraint |
B. |
A trigger |
C. |
A user-defined data type |
D. |
A CHECK constraint |
Correct Answer: C
QUESTION 100
You have a database that contains a table named Department. Department contains the names and locations of each department. You have a table-valued function named ProjectList() that returns a list of all the projects assigned to a department. The name of the department is passed as an argument to the ProjectList() function. You need to create a query that returns a list of all the department names and the project names. The solution must return only departments that are associated to projects. What should you add to the query?
A. |
OUTER APPLY |
B. |
OUTER JOIN |
C. |
CROSS JOIN |
D. |
CROSS APPLY |
Correct Answer: D
Instant Access to Download Testing Software & PDF File for Microsoft 70-464 Real Exam
Instant Access to Try Microsoft 70-464 Free Demo
100-105 Dumps VCE PDF
200-105 Dumps VCE PDF
300-101 Dumps VCE PDF
300-115 Dumps VCE PDF
300-135 Dumps VCE PDF
300-320 Dumps VCE PDF
400-101 Dumps VCE PDF
640-911 Dumps VCE PDF
640-916 Dumps VCE PDF
70-410 Dumps VCE PDF
70-411 Dumps VCE PDF
70-412 Dumps VCE PDF
70-413 Dumps VCE PDF
70-414 Dumps VCE PDF
70-417 Dumps VCE PDF
70-461 Dumps VCE PDF
70-462 Dumps VCE PDF
70-463 Dumps VCE PDF
70-464 Dumps VCE PDF
70-465 Dumps VCE PDF
70-480 Dumps VCE PDF
70-483 Dumps VCE PDF
70-486 Dumps VCE PDF
70-487 Dumps VCE PDF
220-901 Dumps VCE PDF
220-902 Dumps VCE PDF
N10-006 Dumps VCE PDF
SY0-401 Dumps VCE PDF