Basically I have a column in SQL Server that has icon image names
It's kind of like
ICON
------------
Icon001
Icon002.png
Icon003.png
Icon004.png
Icon005
Icon006.png
Icon007.png
I'm trying to figure out how I can write a script to remove all of the .png
from the ones that have it
I have tried
Update [dbo].[screen].[icon]
set ICON = ICON - '%.png%'
where ICON LIKE '%.png%'
But that doesn't work.
Can anybody help me?