Remove last character or no of character remove in SQL server. Its so easy in sqlserver built in function with SUBSTRING , sometimes its little bit tricky for developer when he/she forget about SUBSTRING method.
SELECT SUBSTRING('My Name Is Maksud,', 1, LEN('My Name Is Maksud,') - 1) AS ResultString
You can do this in C#, here you go Remove the last character in a string in -C#
SUBSTRING ( expression ,start , length )Original String is 'My Name Is Maksud,'
SELECT SUBSTRING('My Name Is Maksud,', 1, LEN('My Name Is Maksud,') - 1) AS ResultString
You can do this in C#, here you go Remove the last character in a string in -C#
Comments
Post a Comment