exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 105 discussion

Actual exam question from Microsoft's 70-762
Question #: 105
Topic #: 1
[All 70-762 Questions]

HOTSPOT -
You have a database that contains both disk-based and memory-optimized tables.
You need to create two modules. The modules must meet the requirements described in the following table.

Which programming object should you use for each module? To answer, select the appropriate object types in the answer area.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Module 1: Interpreted stored procedure
An interpreted stored procedure can access both disk-based and memory-optimized tables.
Returning Data by Using OUTPUT Parameters
If you specify the OUTPUT keyword for a parameter in the procedure definition, the stored procedure can return the current value of the parameter to the calling program when the stored procedure exits.
SQL Server stored procedures, views and functions are able to use the WITH ENCRYPTION option to disguise the contents of a particular procedure or function from discovery.
Module 2: Natively compiled stored procedure
Natively compiled stored procedures are Transact-SQL stored procedures compiled to native code that access memory-optimized tables. Natively compiled stored procedures allow for efficient execution of the queries and business logic in the stored procedure.
In-Memory OLTP introduces the concept of native compilation. SQL Server can natively compile stored procedures that access memory-optimized tables. SQL
Server is also able to natively compile memory-optimized tables. Native compilation allows faster data access and more efficient query execution than interpreted
(traditional) Transact-SQL. Native compilation of tables and stored procedures produce DLLs.
References:
https://technet.microsoft.com/en-us/library/ms187004(v=sql.105).aspx https://msdn.microsoft.com/en-us/library/dn249342.aspx https://docs.microsoft.com/en-us/sql/relational-databases/in-memory-oltp/natively-compiled-stored-procedures?view=sql-server-2017

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BenAsare
Highly Voted 4 years, 11 months ago
The answer is correct.
upvoted 13 times
...
NickMane
Most Recent 5 years, 3 months ago
Is this ok?
upvoted 1 times
JohnFan
5 years, 2 months ago
If you specify the OUTPUT keyword for a parameter in the procedure definition, the stored procedure can return the current value of the parameter to the calling program when the stored procedure exits.
upvoted 1 times
...
jithi_sh
4 years, 11 months ago
yes, it is.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...