exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 115 discussion

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

Your application contains a stored procedure for each country. Each stored procedure accepts an employee identification number through the @EmpID parameter.
You need to build a single process for each employee that will execute the appropriate stored procedure based on the country of residence.
Which approach should you use?

  • A. A SELECT statement that includes CASE
  • B. Cursor
  • C. BULK INSERT
  • D. View
  • E. A user-defined function
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️
SQL Server user-defined functions are routines that accept parameters, perform an action, such as a complex calculation, and return the result of that action as a value. The return value can either be a single scalar value or a result set.

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
gi48
4 years, 4 months ago
B is the correct answer
upvoted 1 times
...
Dimples205
4 years, 7 months ago
Based on the limitations on UDF's they cannot call SP's
upvoted 1 times
...
marco13
4 years, 11 months ago
Surely the answer here is instead B: Cursor (even though usage is generally not recommended, if avoidable). You cannot call a stored procedure from within a UDF.
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago