SQL Server Error Msg 33506 – Only natively compiled inline table-valued functions can be used for security predicates on memory optimized tables. Table ‘%.*ls’ is memory optimized, but function ‘%.*ls’ is not natively compiled. Recreate the function using WITH NATIVE_COMPILATION.

In this blog post, let’s learn about the error message “33506 – Only natively compiled inline table-valued functions can be used for security predicates on memory optimized tables. Table ‘%.*ls’ is memory optimized, but function ‘%.*ls’ is not natively compiled. Recreate the function using WITH NATIVE_COMPILATION.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

33506 – Only natively compiled inline table-valued functions can be used for security predicates on memory optimized tables. Table ‘%.*ls’ is memory optimized, but function ‘%.*ls’ is not natively compiled. Recreate the function using WITH NATIVE_COMPILATION.

Reason for the Error

To be update soon…

Solution

To be update soon…