$ 0 0 Hi all,any idea how to mimic this function in T-SQL? We are on SQL Server 2008 R2. Thanks in advance!