Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Unexpected @@rowcount behavior inside an UDF in MS SQL 2019

Scalar udf inlining yet again, rather buggy

SELECT dbo.rowcount_test()

OPTION (USE HINT('DISABLE_TSQL_SCALAR_UDF_INLINING'));

This should be fixed now.

https://support.microsoft.com/en-us/help/4538581/fix-scalar-udf-inlining-issues-in-sql-server-2019

This cumulative update also blocks Inlining in the following scenarios:

  • If the UDF references certain intrinsic functions (e.g. @@ROWCOUNT) that may alter the results when Inlined

Tags:

Sql Server

Tsql

User Defined Functions

Rowcount

Sql Server 2019

Related

Error: Unable to determine the current character, it is not a string, number, array, or object in react-native for android Default implementation in interface is not seen by the compiler? xunit - how to get HttpContext.User.Identity in unit tests How to apply custom animation effect @keyframes in MaterialUI using makestyles() Transfer a List into a Java Stream,and then delete a element of the List.Some errors occur Why is FunctionalDependency needed for defining MonadReader? What is the difference between JFrog Container Registry and JFrog Artifactory? The difference between customize function and native function in prototype Anaconda navigator only showing one python version What HTTP code should I use for a third party authentication failure? Identity Server 4 Silent Renew ErrorResponse: login_required C Thread safe locale/encoding when using sprintf and printf

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy