Usa LEFT combinato con CHARINDEX:
UPDATE MyTable
SET MyText = LEFT(MyText, CHARINDEX(';', MyText) - 1)
WHERE CHARINDEX(';', MyText) > 0
Nota che la clausola WHERE salta l'aggiornamento delle righe in cui non c'è il punto e virgola.
Codice di verifica
declare @MyTable table ([id] int primary key clustered, MyText varchar(100))
insert into @MyTable ([id], MyText)
select 1, 'some text; some more text' union all
select 2, 'text again; even more text' union all
select 3, 'text without a semicolon' union all
select 4, null union all -- test NULL
select 5, '' union all -- test stringa vuota
select 6, 'test 3 semicolons; second part; third part;' union all
select 7, ';' -- test punto e virgola da solo
UPDATE @MyTable
SET MyText = LEFT(MyText, CHARINDEX(';', MyText) - 1)
WHERE CHARINDEX(';', MyText) > 0
select * from @MyTable
Risultati:
id MyText
-- -------------------------
1 some text
2 text again
3 text without a semicolon
4 NULL
5 (stringa vuota)
6 test 3 semicolons
7 (stringa vuota)
Nota
Se il carattere non è presente, CHARINDEX restituisce 0 e LEFT(MyText, -1) genererebbe errore: per questo il filtro nella WHERE è indispensabile. In alternativa puoi usare CASE per gestire l'assenza del delimitatore nella stessa espressione.