Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 Site Related Forums
 Article Discussion
 Article: Working with email addresses in SQL Server!
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 07/24/2002 :  08:53:16  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Narayana Vyas Kondreddi submitted "This article shows you how to design the storage for email addresses, how to validate email addresses, how to write different types of queries on email addresses efficiently, using computed columns and indexes. It also covers the security aspect of dealing with email addresses."

Article Link.

SQL Server MVP & SQLTeam MVY

United Kingdom
313 Posts

Posted - 07/24/2002 :  15:31:13  Show Profile  Visit VyasKN's Homepage  Reply with Quote
People, I updated this article ( ) with another aspect and few more queries:

"Querying the email addresses for country information"

To be able to query country information from email addresses, first we need a table with country codes and country names. So, I uploaded INSERT statements that populate a country table with 252 country codes and country names:

Have fun!

Go to Top of Page

Starting Member

2 Posts

Posted - 11/22/2010 :  06:45:18  Show Profile  Reply with Quote
I know this is a very old thread but it still seems to be a popular read so I thought I'd add to it.

I wrote a script a while ago that corrects the domains...

Basically it cross references domains that have email opens recorded against them and corrects several human errors. So homail(missing character)/htomail(swapped character)/jotmail(close proximity keyboard button) are all corrected.

Details are too long to write here really so have a look at this link...
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000