asp.net - How to detect similarities using .Net or SQL Server -


i'm using asp.net 4 , sql server 2008 r2.

i know if exist class or tool in database or in .net framework calculating data similarities between 2 string values.

what need value in percent indicating similarities between 2 strings, can execute logic based on percentage (like refusing user's input if data similar present in system).

any ideas? thanks

ps please comment if need more information or question not appropriate.

there fuzzy comparison in sql it's not great. instead, use levenstein algorithm has implementation in both sql , c#.

http://en.wikipedia.org/wiki/levenshtein_distance

or similar approach, wiki page has lot of information.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -