开发者

SQL Server 2005 - How can I do a Reg Exp in T-SQL

开发者 https://www.devze.com 2023-01-24 02:49 出处:网络
Is there any w开发者_如何学Cay I can perform a Regular Expression search using T-SQL in SQL Server 2005 without having to load a .Net Assembly?It seems that you can do it with VBScript, but it\'s not

Is there any w开发者_如何学Cay I can perform a Regular Expression search using T-SQL in SQL Server 2005 without having to load a .Net Assembly?


It seems that you can do it with VBScript, but it's not very pretty.


Unfortunately, the only way I know is by using a CLR udf as described in http://msdn.microsoft.com/en-us/magazine/cc163473.aspx


Dan Farino seems to have written an SP for SQL Server exactly for the purpose of using regex without having to install a .NET framework for CLR. Looks promising.

0

精彩评论

暂无评论...
验证码 换一张
取 消