другим вариантом было бы использовать обратную строку и charindex, если у вас есть недружественные символы xml для перекрестного решения
with cte
as (select 'Wake up to breathtaking views of the iconic Sydney Opera House, the Harbour Bridge or Darling Harbour each morning. You will be spoiled for choice at the Shangri-La Hotel, with a day spa, fitness centre and indoor pool at your disposal. The Shangri-la Sydney is located in the historic Rocks area, where Europeans first settled in Australia in 1788. This enviable location is just 5 minutes’ walk from both the Sydney Opera House and the MCA (Museum of Contemporary Art). After a day of sightseeing, you can relax in the bathtub of your lavish marble bathroom. All rooms include free Wi-Fi and an iPod dock, as well as fluffy bathrobes and slippers. CHI, The Spa offers a luxurious escape in its private spa suites, with a range of body treatments and massages on offer. The hotel also offers a hot tub, sauna and sun deck so you can make the most of your stay. The award-winning Altitude Restaurant boasts magnificent views of the harbour. Café Mix offers international all-day dining, while the New York-inspired Blu Bar on 36 is the perfect spot for a creative cocktail.' as sentence
,'sauna' as search_str
)
select --charindex(search_str,sentence)
--,charindex('.',sentence,charindex(search_str,sentence)+1)
--,substring(sentence,1,charindex('.',sentence,charindex(search_str,sentence)+1)-1)
--reverse(substring(sentence,1,charindex('.',sentence,charindex(search_str,sentence)+1)-1))
--,charindex('.',reverse(substring(sentence,1,charindex('.',sentence,charindex(search_str,sentence)+1)-1)))
reverse(
substring(
reverse(substring(sentence,1,charindex('.',sentence,charindex(search_str,sentence)+1)-1))
,1
,charindex('.',reverse(substring(sentence,1,charindex('.',sentence,charindex(search_str,sentence)+1)-1)))-1
)
) as col3
from cte
Db Fiddle link
https://dbfiddle.uk/?rdbms=sqlserver_2017&fiddle=66d0a45fe0dac0c6ddacff421d341ed1