Please help me get the substring of the following text.
I would like to be able to extract the text
PilotCube_2Year
FROM
/content/folder[@name='Reporting Packages']/package[@name='PiotCube_2Year']
I am using SQL Server 2008
I have tried substring and Charindex but could not really get the string PilotCube_2Year
Assuming
package[@name=is what tells you where the string you are looking for is, you could try something like this:Result