[Free] 2018(May) Dumps4cert Braindumps Cisco 650-756 Dumps with VCE and PDF Download 121-130
Developing Microsoft SQL Server 2012 Databases
Question No: 121 DRAG DROP – (Topic 8)
You are planning two stored procedures named SProc1 and SProc2.
You identify the following requirements:
->SProc1 must return a table.
->SProc2 must return a scalar value.
You need to identify which option must be implemented for each stored procedure to return the desired data.
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.)
a table (a set of rows) can be returned through a SELECT statement
*a scalar can be returned through an output parameter.
incorrect: TVP is used for input not output.
Question No: 122 – (Topic 8)
You create a table named Customers by using the following code segment:
You create a non-clustered index named IX_Name on the name column.
You write the following query to retrieve all of the customers that have a name that starts with the letters SMI:
You discover that the query performs a table scan. You need to ensure that the query uses the index. What should you do?
Replace LEFT(name,3) = #39;smi#39; by using name like #39;smi%#39;
Replace LEFT(name,3) = #39;smi#39; by using substring(name,l,3) = #39;smi#39;
Recreate IX_Name as a unique index
Recreate IX Name as a clustered index
Question No: 123 – (Topic 8)
You review a query that runs slowly. The query accesses data in a table named Schema1.Table1.
The following is the relevant portion of the execution plan for the query:
You need to create the missing index. Which code segment should you execute?
CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1) INCLUDE (Column4) WHERE Column2 lt;gt; Column3
CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1)
CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1, Column2, Column3) INCLUDE (Column4)
CREATE NONCLUSTERED INDEX IX1 on schema1.Table1 (Column1) INCLUDE (Column4)
Question No: 124 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
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.)
Question No: 125 DRAG DROP – (Topic 8)
You have a SQL Server 2012 database named database1.
Users report that queries that usually take less than one second to execute, take more than 30 seconds to execute.
You need to view the server resource consumption when the queries are executed. What should you do?
To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Box 1: Start a SQL Server Profiler trace.
Box 2: Start a data collection by using Performance monitor. Box 3: Save the SQL Profiler trace.
Box 4: Save the Performance Monitor data.
Box 5: Import the performance data into SQL Server Profiler.
(step1, step 2) Both the Profiler trace and the Performance Monitor logs should be started and stopped at about the same time.
(step 3, step 4) Once you have completed capturing the data for both tools, you are ready to perform the correlation analysis.
(step 5) How to Correlate SQL Server Profiler Data with Performance Monitor Data Correlating Performance Monitor and Profiler data is a straightforward process that simply involves importing both sets of data into Profiler. Start Profiler and load the trace file you want to correlate.
From the main menu of Profiler, select File | Import Performance Data,
With SQL Server Profiler, we have the tools to identify the causes of such spikes. We can import Performance Monitor log data and compare it directly with Profiler activity. If we see a spike in CPU utilization, we can identify which statement or statements were running at the same time, and diagnose potential problems.
Question No: 126 DRAG DROP – (Topic 8)
Your network contains a SQL Server 2012 instance named SQL1. SQL1 contains a database named DB1. DB1 contains three tables.
The tables are configured as shown in the following table.
You plan to create indexes for the tables.
You need to identify which type of index must be created for each table. The solution must minimize the amount of time required to return information from the tables.
Which type of index should you create for each table? To answer, drag the appropriate index type to the correct table in the answer area.
Question No: 127 DRAG DROP – (Topic 8)
You create a table that contains the following script:
You need to prevent duplicate values in the EmployeeID field. Which five code segments should you use?
To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
Question No: 128 – (Topic 8)
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.
Update less than 4,000 rows simultaneously.
Use the PAGLOCK table hint.
Wait for Proc2 to complete.
Use the ROWLOCK table hint.
Question No: 129 – (Topic 8)
You have a SQL Azure database. You execute the following code:
The Sales.Customers table will contain 100,000 rows. You expect the FaxNumber column to contain a null value for 70 percent of the rows.
You need to create an index to support Sales.CustomersByFaxNumber. The solution must minimize the disk storage requirements.
Which code segment should you execute?
CREATE INDEX IX_Customers ON Customers (FaxNumber) WHERE FaxNumber IS NOT NULL
CREATE INDEX IX_Customers ON Customers (FaxNumber) WITH FILLFACTOR=0
CREATE INDEX IX_Customers ON Customers (CustomerName) INCLUDE (FaxNumber)
CREATE INDEX IX_Customers ON Customers (FaxNumber)
CREATE INDEX IX_Customers ON Customers (FaxNumber) WHERE FaxNumber IS NULL
Question No: 130 – (Topic 8)
You have a SQL Server 2012 database named Database1. You execute the following code:
You insert 3 million rows into Sales.
You need to reduce the amount of time it takes to execute Proc1. What should you do?