Limited Time Discount Offer
30% Off - Ends in 02:00:00

X

Microsoft 70-464 Dumps

verified by experts

2 products

  • Verified by experts

70-464 Premium Bundle

  • Premium File 209 Questions & Answers

  • Training Course 140 Lectures

$35.68

$19.99
Microsoft
Developing Microsoft SQL Server 2012/2014 Databases
Microsoft
Developing Microsoft SQL Server 2012/2014 Databases

Files

Views

70

Size

4.4 MB

Downloads

32

Views

362

Size

4 MB

Downloads

499

Purchase Individually

  • 70-464

    Premium File

    209 Questions & Answers
    $21.41
    $14.99
  • 70-464

    Training Course

    140 Lectures
    $14.27
    $9.99

Questions & Answers for Microsoft 70-464

Showing 1-15 of 183 Questions

Question #1 - Topic 1

You need to modify InsertInvoice to comply with the application requirements.
Which code segment should you execute?

A. Option A

B. Option B

C. Option C

D. Option D

Question #2 - Topic 1

Which data type should you use for CustomerID?

A. varchar(11)

B. bigint

C. nvarchar(11)

D. char(11)

Explanation:
Invoices.xml
All customer IDs are 11 digits. The first three digits of a customer ID represent the
customer's country. The remaining eight digits are the customer's account number.
int: -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647) (just 10 digits max)
bigint: -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807)
http://msdn.microsoft.com/en-us/library/ms176089.aspx
http://msdn.microsoft.com/en-us/library/ms187745.aspx

Question #3 - Topic 1

You attempt to process an invoice by using usp_InsertInvoice.sql and you receive the
following error message: "Msg 515, Level 16, State 2, Procedure usp_InsertInvoice, Line
Cannot insert the value NULL into column 'InvoiceDate', table 'DB1.Accounting.Invoices';
column does not allow nulls. INSERT fails."
You need to modify usp_InsertInvoice.sql to resolve the error.
How should you modify the INSERT statement?

A. InvoiceDate varchar(l00) 'InvoiceDate',

B. InvoiceDate varchar(100) 'Customer/InvoiceDate', '

C. InvoiceDate date '@InvoiceDate',

D. InvoiceDate date 'Customer/@InvoiceDate',

Question #4 - Topic 1

You need to create the InvoiceStatus table in DB1.
How should you define the InvoiceID column in the CREATE TABLE statement?

A. Option A

B. Option B

C. Option C

D. Option D

Question #5 - Topic 1

You execute IndexManagement.sql and you receive the following error message:
"Msg 512, Level 16, State 1, Line 12
Subquery returned more than 1 value. This is not permitted when the subquery follows =,!
=, <, <= ,>, > = or when the subquery is used as an expression."
You need to ensure that IndexManagement.sql executes properly.
Which WHILE statement should you use at line 18?

A. WHILE SUM(@RowNumber) < (SELECT @counter FROM @indextable)

B. WHILE @counter < (SELECT COUNT(RowNumber) FROM @indextable)

C. WHILE COUNT(@RowNumber) < (SELECT @counter FROM @indextable)

D. WHILE @counter < (SELECT SUM(RowNumber) FROM @indextabie)

Question #6 - Topic 1

You need to modify the function in CountryFromID.sql to ensure that the country name is
returned instead of the country ID.
Which line of code should you modify in CountryFromID.sql?

A. 04

B. 05

C. 06

D. 19

Explanation:
http://msdn.microsoft.com/en-us/library/ms186755.aspx
http://msdn.microsoft.com/en-us/library/ms191320.aspx

Question #7 - Topic 1

You need to create a function that filters invoices by CustomerID. The SELECT statement
for the function is contained in InvoicesByCustomer.sql.
Which code segment should you use to complete the function?

A. Option A

B. Option B

C. Option C

D. Option D

Question #8 - Topic 1

You are testing disaster recovery procedures.
You attempt to restore DB1 to a different server and you receive the following error
message: "Msg 33111.
Level 16, State 3, Line 1
Cannot find server certificate with thumbprint
,0xA694FBEA88C9354E5E2567C30A2A69E8FB4C44A9\
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally."
You need to ensure that you can restore DB1 to a different server.
Which code segment should you execute?

A. Option A

B. Option B

C. Option C

D. Option D

Question #9 - Topic 1

You need to convert the functionality of Legacy.sql to use a stored procedure.
Which code segment should the stored procedure contain?

A. Option A

B. Option B

C. Option C

D. Option D

Explanation:
http://msdn.microsoft.com/en-us/library/ms187926.aspx
http://msdn.microsoft.com/en-us/library/ms190782.aspx
http://msdn.microsoft.com/en-us/library/bb669091.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms709342.aspx
http://msdn.microsoft.com/en-us/library/ms188001.aspx

Question #10 - Topic 1

You need to build a stored procedure that amortizes the invoice amount. Which code
segment should you use to create the stored procedure? To answer, move the appropriate
code segments from the list of code segments to the answer area and arrange them in the
correct order.


Topic 2, Scenario 2
Application Information
You have two servers named SQL1 and SQL2 that have SQL Server 2012 installed.
You have an application that is used to schedule and manage conferences.
Users report that the application has many errors and is very slow.
You are updating the application to resolve the issues.
You plan to create a new database on SQL1 to support the application. A junior database
administrator has created all the scripts that will be used to create the database. The script
that you plan to use to create the tables for the new database is shown in Tables.sql. The
script that you plan to use to create the stored procedures for the new database is shown in
StoredProcedures.sql. The script that you plan to use to create the indexes for the new
database is shown in Indexes.sql. (Line numbers are included for reference only.)
A database named DB2 resides on SQL2. DB2 has a table named SpeakerAudit that will
audit changes to a table named Speakers.
A stored procedure named usp_UpdateSpeakersName will be executed only by other
stored procedures. The stored procedures executing usp_UpdateSpeakersName will
always handle transactions.
A stored procedure named usp_SelectSpeakersByName will be used to retrieve the names
of speakers. Usp_SelectSpeakersByName can read uncommitted data.
A stored procedure named usp_GetFutureSessions will be used to retrieve sessions that
will occur in the future.
Procedures.sql


Indexes.sql

Tables.sql

Question #11 - Topic 2

You need to create the object used by the parameter of usp_InsertSessions.
Which statement should you use?

A. CREATE XML SCHEMA COLLECTION SessionDataTable

B. CREATE TYPE SessionDataTable AS Table

C. CREATE SCHEMA SessionDataTable

D. CREATE TABLE SessionDataTable

Question #12 - Topic 2

You are evaluating the table design.
You need to recommend a change to Tables.sql that reduces the amount of time it takes
for usp_AttendeesReport to execute.
What should you add at line 14 of Tables.sql?

A. FullName nvarchar(100) NOT NULL CONSTRAINT DF_FuIlName DEFAULT (dbo.CreateFullName (FirstName, LastName)),

B. FullName AS (FirstName +‘ ’+ LastName),

C. FullName nvarchar(100) NOT NULL DEFAULT (dbo.CreateFullName (FirstName, LastName)).

D. FullName AS (FirstName +‘ ’+ LastName) PERSISTED,

Explanation:
http://msdn.microsoft.com/en-us/library/ms188300.aspx
http://msdn.microsoft.com/en-us/library/ms191250.aspx

Question #13 - Topic 2

Developers report that usp_UpdateSessionRoom periodically returns error 3960.
You need to prevent the error from occurring. The solution must ensure that the stored
procedure returns the original values to all of the updated rows.
What should you configure in Procedures.sql?

A. Replace line 46 with the following code: SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

B. Replace line 46 with the following code: SET TRANSACTION ISOLATION LEVEL REPEATABLE READ

C. Move the SELECT statement at line 49 to line 57.

D. Move the SET statement at line 46 to line 53.

Question #14 - Topic 2

You are evaluating the index design.
You need to recommend a change to Indexes.sql that will minimize the amount of time it
takes for usp_AttendeesReport to execute. The solution must minimize the amount of
database fragmentation.
Which line of code should you use to replace line 12 of Indexes.sql?

A. (LastName);

B. (FirstName) INCLUDE (LastName);

C. (LastName, FirstName);

D. (LastName) INCLUDE (FirstName);

Question #15 - Topic 2

You need to create the object used by the parameter of usp_InsertSessions.
Which statement should you use?

A. CREATE SCHEMA SessionDataTable

B. CREATE TYPE SessionDataTable AS Table

C. CREATE TABLE SessionDataTable

D. CREATE XML SCHEMA COLLECTION SessionDataTable

×