Skalar udf inlining lagi, agak buggy SELECT dbo.rowcount_test() OPTION (USE HINT('DISABLE_TSQL_SCALAR_UDF_INLINING'));