You work as a SQL Server 2012 database developer at ABC.com.
ABC.com has a database SalesDB with a large Orders table. You create a heap named OldData that will store historical data from the Orders table.
You need to write a Transact-SQL query that will insert rows of data from the Orders table that are marked as closed and are more than six months old.
Which of the following table hints should you use in your query if you want to optimize transaction logging and locking for the query?
A. You should make use of the READPAST hint.Which XML data type method do you use to shred XML data to tabular format?
A. modify()You create a view based on the following statement.

You grant the Select permission to User1. You need to change the view so that it displays only the records that were processed in the month prior to the current month. You need to ensure that after the changes, the view functions correctly for User1. Which Transact-SQL statement should you use?

You have a vendor application that uses a scalar function.
You discover that the queries for the application run slower than expected.
You need to gather the runtime information of the scalar function.
What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
A. Enable the Include Actual Execution Plan option.You administer a Microsoft SQL Server database named ContosoDb. The database has the following schema collection: The database has a table named ReceivedPurchaseOrders that includes an XML column named PurchaseOrder by using the above schema. You need to set the requiresApproval attribute of the XML documents to false if they contain more than 50 items.


Which Transact-SQL query should you run?
A. Option AWhich FOR XML options are valid? (Choose all that apply.)
A. FOR XML AUTOYou use Microsoft SQL Server 2012 to develop a database application. Your application sends data to an NVARCHAR (MAX) variable named @var.
You need to write a Transact-SQL statement that will find out the success of a cast to a decimal (36,9).
Which code segment should you use?

Note: This question is part of a series of questions that use the same set of answer choices. An answer choice may be correct for more than one question in the series.
You develop a database for a travel application. You create a view that displays details of events and attractions. The names of the event and attractions are sorted alphabetically.
You need to sort the names in a case-sensitive, dictionary order.
What should you do?
A. Use the CAST function.You develop a Microsoft SQL Server database. You design a table to store product information. The table is defined as follows:

You need to meet the following requirements:
1.
If a product has a product category value other than "REGULAR", the product should have a sub-category with a length of two characters.
2.
If a product has the product category "REGULAR", the product may or may not have a sub-category. Which Transact-SQL statement should you use?

What can you specify as the source data in the USING clause? (Choose all that apply.)
A. A regular table, table variable, or temporary tableNowadays, 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-461 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.