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.

 All Forums
 Site Related Forums
 Article Discussion
 Article: Working with email addresses in SQL Server!

Author  Topic 

Ask SQLTeam Question

0 Posts

Posted - 2002-07-24 : 08:53:16
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

313 Posts

Posted - 2002-07-24 : 15:31:13
People, I updated this article ( [url][/url] ) 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: [url][/url]

Have fun!

Go to Top of Page

Starting Member

2 Posts

Posted - 2010-11-22 : 06:45:18
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

- Advertisement -