How to SUBSTRING A Nvarchar Value From A Word To Another Word In Sql Server -
I need to read a file address from field value in a SQL server I think use SUBSTRING but the SUBSTRING index starts And
& lt; Border borderchurch = "0,0,0,0" cornerreadia = "5,5,5,5" name = "_blank blockborder" xmlns = "http://schemas.microsoft.com/winfx/2006/ Xaml / presentation "& lt; canvas name =" _ content content "margin =" 1,1 ", 1,1" & gt; Border width = "202.608503937008" height = "205.148346456693" & gt; Image source = "file: ///w: new folder (2) /8/PAYAM.tif" fill = "fill =" tag = "w: \ new folder (2) \ 8 \ pAYAM.tif" /> gt ; & Lt; / Border> & Lt; / Canvas & gt; & Lt; / Border & gt; And the result I want: W: \ New folder (2) \ 8 \ PAYAM.tif in the image HTML tags from the attribute tag. I need this word sql server
thanks
work for it You must:
SELECT Left (right (@text, LEN (text) - CHARINDEX ('Tag =' ', @text) - 4), CHARINDEX (' '', right (@ Text, LAN (@text) - Charidix ('tag =' ', text @) -4- 1))) Use your real column name instead of @text.
Comments
Post a Comment