• Thanks to Alexander for the fix.

    About performance metrics :

    in general, my update statistics runs N times faster than built-in sp_updatestats , where N is number of threads .

    I think that N= 5/10 is good for most purposes ... anyway consider that updating statistics in this way is a task that makes heavy use of db resources, to perform his task faster than the dedicated built-in does