Hello guys, I have try to implement codeing what you suggest me. but it didn't work properly. I need your help again.
Let me explain you in detail, I have table called exchange and there is a field called proxy_addresses which has following data.
X400:c=US;a=KNA;p=Enterprise;o=KNA US New Jersey;s=Burke;g=Andrew;i=P;%SMTP:BurkeA@test.com
SMTP:EngJ@test.com%MS:test/USA/GEJLE00%X500:/o=test/ou=USA/cn=
Recipients/cn=GEJLE00%X400:c=US;a=KNA;p=Enterprise;o=KNA US New Jersey;s=Eng;g=
SMTP:MastersonJ@test.com%MS:test/USA/GEJXM00%X500:/o=test/ou=
USA/cn=Recipients/cn=GEJXM00%X400:c=US;a=KNA;p=Enterprise;o=KNA US New Jersey;s=
X400:c=US;a=KNA;p=Enterprise;o=KNA US New Jersey;s=Brady;g=Ken;i= ;%SMTP:BradyK@test.com
MS:test/USA/GELSW002%SMTP

owersL@test.com%X500:/o=test/ou=
USA/cn=Recipients/cn=GELSW00%X400:c=US;a=KNA;p=Enterprise;o=KNA US New Jersey;s=Po
So, I created view with following code
SUBSTRING(Proxy_Addresses, CHARINDEX('SMTP:', Proxy_Addresses)+ 5, LEN(Proxy_Addresses) - (CHARINDEX('SMTP:', Proxy_Addresses)+ 4)) AS EmailAddresses
When i open the view i got following output
BurkeA@test.com
EngJ@test.com%MS:test/USA/GEJLE00%X500:/o=test/ou=USA/cn=
Recipients/cn=GEJLE00%X400:c=US;a=KNA;p=Enterprise;o=KNA US New Jersey;s=Eng;g=
MastersonJ@test.com%MS:test/USA/GEJXM00%X500:/o=test/ou=
USA/cn=Recipients/cn=GEJXM00%X400:c=US;a=KNA;p=Enterprise;o=KNA US New Jersey;s=
BradyK@test.com
PowersL@test.com%X500:/o=test/ou=USA/cn=Recipients/cn=GELSW00%X400:c
=US;a=KNA;p=Enterprise;o=KNA US New Jersey;s=Po
As i said i need only email address, How can i remove other characters
PLease help me out.
Thanks
AD