• ...

    they are all really close over 1 million records

    ...

    If you want your CLR with Regex to perform well you need to declare your Regex object as static and use Compile option for the pattern. Try changing your CLR to this:

    public partial class UserDefinedFunctions

    {

    static readonly Regex _regex = new Regex(@"^[^\.]+\.[^\.]+$", RegexOptions.Compiled);

    [Microsoft.SqlServer.Server.SqlFunction()]

    public static bool RegexCLR(string input)

    {

    return Regex.IsMatch(input);

    }

    };

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]