阅读背景:

在SQL Server中验证表中的字符串——CLR函数或T-SQL(问题更新)

来源:互联网 

I need to check If a column value (string) in SQL server table starts with a small letter and can only contain '_', '-', numbers and alphabets. I know I can use a SQL server CLR function for that. However, I am trying to implement that validation using a scalar UDF and could make very little here...I can use 'NOT LIKE', but I am not sure how to make sure I validate the string irrespective of the order of characters or in other words write a pattern in SQL for this. Am I better off using a SQL CLR function? Any help will be appreciated..I need to check If a column value (string) in S




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: