Thanks but I also need to try to test the TDLs like .com, .net, .uk....... -----Original Message----- From: Qasim Rasheed [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 1:19 PM To: CF-Talk Subject: Re: OT SQL question
I think you can write a UDF to validate email addresses. Here is link http://vyaskn.tripod.com/handling_email_addresses_in_sql_server.htm On Tue, 8 Feb 2005 12:55:42 -0600, Eric Creese <[EMAIL PROTECTED]> wrote: > I want to verify email addresses that are entered into one of my apps. > Unfortunately I already inherited close to 100k email address. So I want to > do the following in SQL via a stored procedure so I can write the bad > addresses out to an error table. Need to check if there is an @ sign, if the > TDL is valid from the list I have from ICANN. When I check through each like > statement but that is not going to work. Any other ideas? This can not be > done through a CF page but eventually the result will b posted to one. > > SELECT DISTINCT personid,email > FROM People > WHERE MbrExpireDate > '2/1/2005' > AND (email not like '[EMAIL PROTECTED]' > OR email NOT LIKE '%.AC' > .... > OR email NOT LIKE '%.ZW') > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193708 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54