SDU Tools: Count Words in T-SQL
Some of the simpler tools that we’ve added to our free SDU Tools collection over the last year or so, have turned out to be quite useful.
A good example of this is CountWords.
This function takes a T-SQL string, removes the punctuation, excess whitespace, etc. and then counts the number of words contained. There are a few things that can still trick it (avoiding that would need very detailed langauge parsing) but it’s quite good.
2018-03-21