1.

Point out the correct statement.(a) User-defined functions cannot be used to perform actions that modify the database state(b) User-defined functions cannot contain an OUTPUT INTO clause that has a table as its target(c) User-defined functions can not return multiple result sets. Use a stored procedure if you need to return multiple result sets(d) All of the mentionedThis question was addressed to me in an internship interview.I want to ask this question from User Defined Functions topic in portion Developing with SQL Server of SQL Server

Answer»

Right answer is (d) All of the mentioned

For explanation: Transact-SQL ERRORS that CAUSE a statement to be canceled and continue with the next statement in the MODULE (such as TRIGGERS or stored PROCEDURES) are treated differently inside a function.



Discussion

No Comment Found

Related InterviewSolutions