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

2019-07-23 12:38发布

Is there any way I can perform a Regular Expression search using T-SQL in SQL Server 2005 without having to load a .Net Assembly?

3条回答
祖国的老花朵
2楼-- · 2019-07-23 13:01

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

查看更多
可以哭但决不认输i
3楼-- · 2019-07-23 13:07

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.

查看更多
Summer. ? 凉城
4楼-- · 2019-07-23 13:19

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

查看更多
登录 后发表回答