Ensurepass

QUESTION 181

DRAG DROP

You are a developer of a Microsoft SQL Server 2008 R2 database instance that supports a web-based order-entry application.

 

You need to create a server-side trace that meets the following requirements:

 

Which four actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)

 

image151

 

Correct Answer:

image153

 

 

 

QUESTION 182

You create a stored procedure that contains proprietary formulas. You need to ensure that no users are able to access Microsoft SQL Server Management Studio to view the definition of the stored procedure. Which code segment should you use?

 

image154

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

QUESTION 183

DRAG DROP

You administer a Microsoft SQL Server 2008 database that includes a table named Products.

 

The Products table has the following schema:

 

image155

 

You create a User-Defined Function (UDF) in the same database.

 

The UDF has the following schema:

 

image157

 

You need to meet the following requirements:

 

Which three Transact-SQL statements should you use? (To answer, move the appropriate statements from the list of statements to the answer area and arrange them in the correct order.)

 

image159

Correct Answer:

image161

 

 

QUESTION 184

You need to identify which products will be inserted when you execute the following code block.

 

image163

 

Which products will be inserted?

 

A.

Beverage

B.

Food and beverage

C.

None

D.

Food

 

Correct Answer: C

 

 

QUESTION 185

You develop a new stored procedure for an existing database. You create two tables named Customer and Orders.

 

The tables have the following definitions:

 

image165

 

Users are restricted from accessing table objects directly. You need to ensure that users are able to retrieve customer data.

 

You need to create a stored procedure that meets the following requirements:

 

Which Transact-SQL statement or statements should you use?

 

image167

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

 

QUESTION 186

DRAG DROP

You administer a Microsoft SQL Server 2008 database that contains a table named Sales.SalesOrderHeader.

 

The Sales.SalesOrderHeader table has the following definition:

 

image168

 

You want to generate an execution plan of XML output document for a query that displays all Sales.SalesOrderHeader records containing orders that have not been shipped.

 

You need to ensure that the following requirements are met:

 

Which three Transact-SQL statements should you use? (To answer, move the appropriate statements from the list of statements to the answer area and arrange them in the correct order.)

 

image169

 

Correct Answer:

image170

 

 

 

QUESTION 187

You administer a Microsoft SQL Server 2008 database named AdventureWork that contains a table named Production.Product.

 

The table has the following definition:

 

image172

 

You want to add a new product named Widget and a list price of 10.50 U.S. dollars to the product table.

 

You need to add a record for the product information. You also need to set the DateCreated field to the current date and the UserCreated field to your Windows login identification name.

 

Which Transact-SQL statement should you use?

 

image174

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

 

QUESTION 188

You administer a Microsoft SQL Server 2008 R2 database that has a table named Customer.

 

The table has the following definition:

image175

 

The database also has a table named PreferredCustomerList. Data will be added to the PreferredCustomerList table regularly.

 

The PreferredCustomerList table has the following definition:

 

image176

 

You need to create a view that returns all records and columns of the Customer table that are also present in the PreferredCustomerList table.

 

Which Transact-SQL statement should you use?

 

image178

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

QUESTION 189

You administer a Microsoft SQL Server 2008 R2 instance configured to use Windows Authentication.

 

The database contains a table named CustomerTransaction that has the following definition:

 

image179

 

You define the following table:

 

image180

 

You need to ensure that the following requirements are met:

 

Which Transact-SQL statement or statements should you use?

 

image181

 

image182

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 190

DRAG DROP

You administer a database named Contoso running on a Microsoft SQL Server 2008 R2 instance.

 

You plan to implement custom error handling in your application.

 

You need to implement custom error handling that meets the following requirements:

 

Which three Transact-SQL statements should you use? (To answer, move the appropriate statements from the list of statements to the answer area and arrange them in the correct order.)

 

image184

 

Correct Answer:

image186

 

Instant Access to Download Latest Complete Collection of Microsoft 70-433 Real Exam

Try Microsoft 70-433 Free Demo