Odległość Levenshteina w T-SQL

Interesuje mnie algorytm w T-SQL obliczający odległość Levenshteina.