1.

Nesting level of a stored procedure’s execution is stored in the _________ function.(a) NEST(b) NESTLEVEL(c) LEVEL(d) None of the mentionedI had been asked this question in homework.My doubt stems from Stored Procedure in chapter Developing with SQL Server of SQL Server

Answer»

Correct answer is (B) @@NESTLEVEL

Explanation: When @@NESTLEVEL is EXECUTED WITHIN a Transact-SQL string, the VALUE returned is 1 + the current nesting LEVEL.



Discussion

No Comment Found

Related InterviewSolutions