PrepAway - Latest Free Exam Questions & Answers

Which type of object should you use?

You need to encapsulate a T-SQL script into a reusable user-defined object.
The object must meet the following requirements:
Permit insertions into a table variable.
Support structured exception handling.
Prevent changes to the definition of referenced objects.
Support the use of the APPLY operator on the output of the object.
Which type of object should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
An inline table-valued function

B.
A stored procedure

C.
A scalar user-defined function

D.
A multi-statement table-valued function

9 Comments on “Which type of object should you use?

  1. annonymous says:
  2. ryahan says:

    agree with Error Torsten handling is restricted in a user-defined function. A UDF does not support TRY…CATCH, @ERROR or RAISERROR. answer or question might be screwed




    0



    0
  3. Cray says:

    D is the best answer. In terms of exception handling, question it does not say it has to be TRY CATCH; I would assume If then else ..etc is what the question referring.




    0



    0

Leave a Reply