You are a database developer. You plan to design a database solution by using SQL Server 2008. The database has a table named Sales. The Sales table contains 10 million rows.
You discover that the following query takes a long time to execute.
SELECT s.sale_id,...
FROM Sales AS s
JOIN Country AS c
ON s.Country_id = c.Country_id
AND c.Country_name = 'USA'
A summary of the execution plan is as shown in the following code segment. |--Hash Match(Inner Join,
HASH:
([s].[Country_id]) = ([c].[Country_id]) |--Clustered Index Scan(OBJECT:([Country].
[PK_Country_Country_id] AS
[c]) |--Clustered Index Scan(OBJECT:([Sales].[PK_Sales_Sale_id] AS [s]))
You need to ensure that the query retrieves data in minimum possible time.
What should you do?
A. Modify the query to use a loop join hint.You are designing a database that will be used for reporting purposes. You need to minimize the data storage requirements and improve the application response time. What should you recommend?
A. row compressionYou are a database developer. You plan to design a database solution by using SQL Server 2008. A database contains a view that has the following features: What should you do?
A. Create an INSTEAD OF trigger on the view.You are a database developer. You plan to design a database solution by using SQL Server 2008.
The database contains a table named Products.
The database has two stored procedures named ModifyProduct and RetrieveProducts. ModifyProduct updates a single row in the Products table. RetrieveProducts returns all rows from the Products table.
RetrieveProducts is used by a report. Users who run the report experience contention problems. You discover that RetrieveProducts is being blocked by ModifyProduct.
The report must not include rows that are currently being modified.
You need to ensure that the report is executed as quickly as possible.
Which locking hint should you use in RetrieveProducts?
A. NOLOCKYou are a database developer. You plan to design a database solution by using SQL Server 2008.
You have a Web site supported by a database that has the full-text search component installed. You plan to create a table named Courses that will have the following structure.

Users of the Web site will search for courses based on the CourseTitle field. You need to construct a full-text query that ensures the following compliances when a user launches the search for a course: What should you specify in the full-text query?
A. A FREETEXT predicateYou are a database developer. You develop a database application for a SQL Server 2008 instance.

The instance hosts a third-party database. You are not allowed to modify the database schema. The database contains two tables that are as shown in the following diagram.
You plan to extract address information about full-time employees based on the FullTimeIndicator flag.
You need to design a data access layer to simplify the extraction process.
What should you do?
A. Design an Entity Data Model that contains the EMPLOYEES and ADDRESS entities.You are a database developer. You plan to design a database solution by using SQL Server 2008. You plan to design a complex multi-statement stored procedure in the following manner.
CREATE PROCEDURE Sales.GetCustomerActivity @StartDate datetime AS SELECT order_id, order_date, customer_id FROM Sales.Orders WHERE order_date >= @StartDate ...
On testing, you discover that the stored procedure occasionally takes a longer than expected time to execute.
You discover that this degradation is caused by the first statement in the stored procedure.
You need to ensure that the stored procedure is consistently executed in the minimum possible time.
What should you do?
A. Run the EXEC sp_recompile GetCustomerActivity command.You need to design a solution to guarantee that a stored procedure is part of every transaction. What should you do?
A. Enable implicit transactions.Your company is developing an application. The database platform for the application will be vendor-independent.
You need to ensure that the application automatically stores the current date and time data when a record is inserted or updated, regardless of the database platform.
What should you do?
A. Use Entity Framework and DateTime.Now.You are a database developer. You plan to design a database solution by using SQL Server 2008.
The database will contain a view. The view will contain a computed column that will be indexed.
The computed column will use a user-defined scalar function. The function will perform complex mathematical manipulations using random generated float numeric values.
You need to identify the appropriate function to use to generate random values.
Which function should you use?
A. a deterministic Transact-SQL table-valued functionNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-451 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.