• Sean Lange (6/26/2013)


    What would really help is:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form of INSERT INTO statements

    3. Expected results based on the sample data

    You are asking for help writing code against some sql tables but I don't have those tables to work with. From the excel spreadsheet I am guessing that the best way to accomplish is with a CLR proc. You will need to parse the values on commas first and then look for valid emails using a regex. I can help you figure this out but with no tables it is guess work on my part.

    Wouldn't the 8K Splitter function work along with one or two CHARINDEX?

    I'm not sure if it will get too complex depending on the OP requirements.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2