SQL Server substring breaking on words, not characters
问题 I'd like to show no more than n characters of a text field in search results to give the user an idea of the content. However, I can't find a way to easily break on words, so I wind up with a partial word at the break. When I want to show: "This student has not submitted his last few assignments", the system might show: "This student has not submitted his last few assig" I'd prefer that the system show up to the n character limit where words are preserved, so I'd like to see: "This student