Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 58315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:49:43+00:00 2026-05-10T17:49:43+00:00

The issue is there is a database with around 20k customer records and I

  • 0

The issue is there is a database with around 20k customer records and I want to make a best effort to avoid duplicate entries. The database is Microsoft SQL Server 2005, the application that maintains that database is Microsoft Dynamics/SL. I am creating an ASP.NET webservice that interacts with that database. My service can insert customer records into the database, read records from it, or modify those records. Either in my webservice, or through MS Dynamics, or in Sql Server, I would like to give a list of possible matches before a user confirms a new record add.

So the user would submit a record, if it seems to be unique, the record will save and return a new ID. If there are possible duplications, the user can then resubmit with a confirmation saying, ‘yes, I see the possible duplicates, this is a new record, and I want to submit it’.

This is easy if it is just a punctuation or space thing (such as if you are entering ‘Company, Inc.’ and there is a ‘Company Inc’ in the database, But what if there is slight changes such as ‘Company Corp.’ instead of ‘Company Inc’ or if there is a fat fingered misspelling, such as ‘Cmpany, Inc.’ Is it even possible to return records like that in the list? If it’s absolutely not possible, I’ll deal with what I have. It just causes more work later on, if records need to be merged due to duplications.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:49:44+00:00Added an answer on May 10, 2026 at 5:49 pm

    The specifics of which algorithm will work best for you depends greatly on your domain, so I’d suggest experimenting with a few different ones – you may even need to combine a few to get optimal results. Abbreviations, especially domain specific ones, may need to be preprocessed or standardized as well.

    For the names, you’d probably be best off with a phonetic algorithm – which takes into account pronunciation. These will score Smith and Schmidt close together, as they are easy to confuse when saying the words. Double Metaphone is a good first choice.

    For fat fingering, you’d probably be better off with an edit distance algorithm – which gives a ‘difference’ between 2 words. These would score Smith and Smoth close together – even though the 2 may slip through the phonetic search.

    T-SQL has SOUNDEX and DIFFERENCE – but they are pretty poor. A Levenshtein variant is the canonical choice, but there’s other good choices – most of which are fairly easy to implement in C#, if you can’t find a suitably licensed implementation.

    All of these are going to be much easier to code/use from C# than T-SQL (though I did find double metaphone in a horrendous abuse of T-SQL that may work in SQL).

    Though this example is in Access (and I’ve never actually looked at the code, or used the implementation) the included presentation gives a fairly good idea of what you’ll probably end up needing to do. The code is probably worth a look, and perhaps a port from VBA.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 51k
  • Answers 51k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer GetRows This will create the speed you seek. Here are… May 11, 2026 at 6:32 am
  • added an answer This utils.ParamHash = new utils.ParamHash('a', 1, 'b', 2); overwrites the… May 11, 2026 at 6:32 am
  • added an answer I believe you mean something like xterm -e your.sh &… May 11, 2026 at 6:32 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.