SQL Server Error Msg 10792 – When used in a natively compiled module, the function ‘%.*ls’ cannot appear outside of a catch block.

In this blog post, let’s learn about the error message “10792 – When used in a natively compiled module, the function ‘%.*ls’ cannot appear outside of a catch block.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

10792 – When used in a natively compiled module, the function ‘%.*ls’ cannot appear outside of a catch block.

Reason for the Error

To be update soon…

Solution

To be update soon…