I would like to show no more than n characters of the text field in the search results to give the user an idea of ββthe content. However, I cannot find a way to easily break words, so I end up with a partial word during the break.
When I want to show: "This student has not submitted his last few assignments," the system can show: "This student has not submitted his last few assig"
I would prefer the system to be displayed before the character n characters where the words are stored, so I would like to see:
"This student has not presented his last few"
Is there a closest word function that I could write in T-SQL, or do I need it when I return the results back to ASP or .NET?
source
share