Digitalcandy
IS-IT--Management
On MS SQL 2000, I have a field that stores host names from Microsoft ISA logging. I want to pull out the domain name portion of the host for .com and .net domains only.
Sample data would end up looking like so...
US.f840.mail.yahoo.com --> yahoo.com
--> yahoo.com
configure.us.dell.com --> dell.com
webmailb.netzero.net --> netzero.net
I know for other countries, things get complicated, so that's why I'm only concerning myself with .net and .com hosts.
Sample data would end up looking like so...
US.f840.mail.yahoo.com --> yahoo.com
--> yahoo.com
configure.us.dell.com --> dell.com
webmailb.netzero.net --> netzero.net
I know for other countries, things get complicated, so that's why I'm only concerning myself with .net and .com hosts.