Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
pggokcen
Starting Member
1 Post |
Posted - 2006-03-13 : 11:08:39
|
| Hi;I want to create a rule that checks whether user entered a valid email address or not can you please help me urgent :) |
|
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2006-03-13 : 11:19:38
|
| What do you think of as a valid email address? |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-03-13 : 11:22:40
|
| In google do a sesarch forvalidate email address tsqlor something similar.vyas is usually a reliable sourcehttp://vyaskn.tripod.com/handling_email_addresses_in_sql_server.htm==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2006-03-13 : 13:48:05
|
| Hi pggokcen, Welcome to SQL Team!In my experience you are going to have a difficult job checking an Email address in SQL.It would be better to check it in your application, preferably by doing an MX lookup.If you want to bulk-check Email addresses in an existing table I do have a routine that uses a regular expression via a COM object, but I would not advise it for a production server.Kristen |
 |
|
|
|
|
|