I need your advice. I’m writing an ASP.NET web application and I’m considering whether or not to allow users to specify search words in the database using regular expressions.
Two questions:
-
Does SQL Server support using regular expressions for SELECT statements?
-
Is it safe to allow users to specify regexps for database selection?
1 – No, but you may use CLR function for this, like:
2 – Safety completely depends on your realization