Sep 14, 2005 #1 psimon88 IS-IT--Management Jul 21, 2005 66 US example: abc@abc.com ZZZm98@hotmail.com I'd like to extract the characters afteer the "@" but I can't use right () because the len varies. Any ideas?
example: abc@abc.com ZZZm98@hotmail.com I'd like to extract the characters afteer the "@" but I can't use right () because the len varies. Any ideas?
Sep 14, 2005 1 #2 RoyVidar Instructor Jun 16, 2000 6,606 NO Sure? [tt]right$(mystring, instr(mystring, "@")+1)[/tt] Roy-Vidar Upvote 0 Downvote
Sep 15, 2005 Thread starter #3 psimon88 IS-IT--Management Jul 21, 2005 66 US Thank you. You'd think that that's it, right? 'instr' is not a recognized function name. SQL Analyzer running off SQL Server 2000. Instead, I got it with this: right(stremail,(LEN(strEMail)-CHARINDEX('@', strEMail))) as 'domain' Upvote 0 Downvote
Thank you. You'd think that that's it, right? 'instr' is not a recognized function name. SQL Analyzer running off SQL Server 2000. Instead, I got it with this: right(stremail,(LEN(strEMail)-CHARINDEX('@', strEMail))) as 'domain'
Sep 16, 2005 #4 ESquared Programmer Dec 23, 2003 6,129 US RoyVidar... you're using VB syntax in an MS SQL Server environment. These are ADPs being talked about. Upvote 0 Downvote
RoyVidar... you're using VB syntax in an MS SQL Server environment. These are ADPs being talked about.