From column Attachmentname I need to remove the first two characters and replace add a different string.
Select
attachmentName
from
docstatus
where
salesorder = '230162'
AttachmentName
-------------------------------
H:\Quality\4513014196_00040.pdf
I need to remove the H: and replace it with 'file://server/certs' so that the result is.
AttachmentName
-------------------------------------------------
file://server/certs/Quality/4513014196_00040.pdf
I can remove the first two characters but I don't know the string to add file://server/certs within the same string
right(AttachmentName, len(AttachmentName) - 2)