By Rick Bielawski It is well-known that T-SQL scalar functions still (as of 2014) perform poorly when used against a large number of rows. Although encapsulating algorithms is a best practice, too often it’s not worth the performance hit that comes with using scalar functions to perform the encapsulation. Scenario The client stores event timesRead more