Regular Expressions in SQL Server servers?

后端 未结 5 737
感情败类
感情败类 2020-11-27 06:18

Is it possible to make efficient queries that use the complete regular expression feature set.

If not Microsoft really should consider that feature.

5条回答
  •  天涯浪人
    2020-11-27 06:40

    I think we can see from the new types in SQL Server 2008 (hierarchyid, geo-spatial) that if Microsoft do add this it will come in the form of a SQL CLR Assembly

    If you are able to install Assemblies into your database you could roll your own by creating a new Database\SQL Server project in Visual Studio - this will allow you to make a new Trigger / UDF / Stored Proc / Aggregate or UDT. You could import System.Text.RegularExpressions into the class and go from there.

    Hope this helps

提交回复
热议问题