Exam Code: 70-464 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Developing Microsoft SQL Server 2012 Databases
Certification Provider: Microsoft
Free Today! Guaranteed Training- Pass 70-464 Exam.


2026 New 70-464 Exam Dumps with PDF and VCE Free: https://www.2passeasy.com/dumps/70-464/

Q1. You plan to modify a stored procedure to use temporary data. The stored procedure must meet the following requirements: 

. Favor physical memory when physical memory is available. 

. Be able to roll back changes to the temporary data. 

You need to recommend which object to add to the stored procedure. 

Which T-SQL command should you recommend? 

A. CREATE TABLE ##Table... 

B. CREATE TABLE Table... 

C. CREATE VIEW Table... 

D. CREATE PARTITION SCHEME Table... 

E. DECLARE TABLE @ Table... 

Answer:

Explanation: Temporary Tables You can create local and global temporary tables. Local temporary tables are visible only in the current session, and global temporary tables are visible to all sessions. Temporary tables cannot be partitioned. Prefix local temporary table names with single number sign (#table_name), and prefix global temporary table names with a double number sign (##table_name) 

Q2. You use SQL Azure to store data used by an e-commerce application. 

You develop a stored procedure named sp1. Sp1 is used to read and change the price of all the products sold on the e-commerce site. 

You need to ensure that other transactions are blocked from updating product data while sp1 is executing. 

Which transaction isolation level should you use in sp1? 

A. Repeatable read 

B. Read committed 

C. Serializable 

D. Snapshot 

Answer:

Q3. You have a SQL Server 2012 environment that contains two servers. The servers are configured as shown in the following table. 

After the failover is complete, a user receives the following error message when connecting to DB1 on Server2: 

"Msg 916, Level 14, State 1, Line 1 The server principal "Account1" is not able to access the database "DB1" under the current security context." 

You verify that there is a server login for Account1 on Server2. 

You need to ensure that Account1 can connect to DB1. 

What should you do? 

More than one answer choice may achieve the goal. Select the BEST answer. 

A. Update the SID for Account1 on DB1. 

B. Add Account1 to the db_datareader role. 

C. Create a new database user on DB1. 

D. Implement Windows authentication. 

Answer:

Q4. You need to modify Production.ProductDetails_Insert to comply with the application requirements. 

Which code segment should you execute? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: 

http://msdn.microsoft.com/en-us/library/bb669102.aspx 

Q5. You are creating a table named Orders. 

You need to ensure that every time a new row is added to the Orders table, a user-defined function is called to validate the row before the row is added to the table. 

What should you use? 

More than one answer choice may achieve the goal. Select the BEST answer. 

A. A data manipulation language (DML) trigger 

B. A DEFAULT constraint 

C. A Data Definition Language (DDL) trigger 

D. A CHECK constraint 

E. A FOREIGN KEY constraint 

Answer:

Explanation: 

http://www.techrepublic.com/blog/programming-and-development/comparing-sql-serverconstraints-and-dmltriggers/402 http://msdn.microsoft.com/en-us/library/ms178110.aspx 

Q6. You plan to create a new column in a table. The column must meet the following requirements: 

. Be able to store images that are larger than 1 MB each. 

. Be able to access the images from Microsoft .NET Framework applications. 

You need to recommend which data type must be used in the column. 

Which data type should you recommend? 

More than one answer choice may achieve the goal. Select the BEST answer. 

A. nvarchar 

B. varbinary 

C. image 

D. FileStream 

Answer:

Q7. Topic 8) 

You plan to deploy two stored procedures name USP_1 and USP_2 that read data from a database. 

Your company identifies the following requirements for each stored procedure: 

. USP_1 cannot allow dirty reads. 

. USP_2 must place range locks on the data to ensure read consistency. 

You need to identify which isolation level you must set for each stored procedure. The solution must minimize the number of locks. 

Which isolation level should you identify? 

To answer, drag the appropriate isolation level to the correct stored procedure in the answer area. (Answer choices may be used once, more than once, or not at all.) 

Answer:  

Q8. Topic 8) 

You have a database that contains three tables. The tables are configured as shown in the following table. 

You have the following query: 

The execution plan for the query is shown in the exhibit. (Click the Exhibit button.) 

You need to create one index to minimize the amount of time it takes to execute the query. 

What should you do? 

To answer, drag the appropriate columns to the correct locations in the answer area. 

 (Answer choices may be used once, more than once, or not at all.) 

Answer:  

Q9. Topic 8) 

You have two existing tables, one named COUNTRY and the other named STATES. The tables are defined as follows: 

You need to set up a rule that every STATE.Country_Abbr must match an existing record in the COUNTRY table. 

Develop the solution by selecting and arranging the required code blocks in the correct order. 

You may not need all of the code blocks. 

Answer:  

Q10. While testing the CategoryFromType function, you discover that the function is returning 'Other'. 

You need to update CategoryFromType to return the category name. 

Which line of code should you modify in CategoryFromType.sql? 

A. 04 

B. 05 

C. 12 

D. 14 

Answer: