i have large string in SQL Server. I want to truncate that string to 10 or 15 character
Original string
this is test string. this is test string. thi
You can also use the Cast() operation :
Declare @name varchar(100); set @name='....'; Select Cast(@name as varchar(10)) as new_name