Online Access Free 070-461 Practice Test

Exam Code:070-461
Exam Name:Querying Microsoft SQL Server 2012/2014
Certification Provider:Microsoft
Free Question Number:252
Posted:Oct 25, 2025
Rating
100%

Question 1

You develop a database application for Microsoft SQL Server and Microsoft Azure SQL Database.
You need to raise an exception and transfer execution to a CATCH block.
You need to ensure that the exception returns output in the following format:
Msg 51000, Level 16, State 1, Line 1
The record does not exist.
Which Transact-SQL statement should you run?

Question 2

You have an XML schema collection named Sales.InvoiceSchema.
You need to declare a variable of the XML type named Invoice. The solution must ensure that the Invoice variable is validated against the Sales.InvoiceSchema schema.
Part of the correct Transact-SQL has been provided in the answer area below. Enter the Transact-SQL in the answer area that resolves the problem and meets the stated goals or requirements. You can add Transact-SQL within the Transact-SQL segment that has been provided as well as below it.


Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by line and character position.

Question 3

You use Microsoft SQL Server 2012 to develop a database application.
You need to create an object that meets the following requirements:
* Takes an input variable
* Returns a table of values
* Cannot be referenced within a view
Which object should you use?

Question 4

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.)

You need to display rows from the Orders table for the Customers row having the CustomerId value set to 1 in the following XML format.

Which Transact-SQL query should you use?

Question 5

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.)

You need to display rows from the Orders table for the Customers row having the CustomerId value set to 1 in the following XML format.

Which Transact-SQL query should you use?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.