assuming there will be only one instance of lastprocessed within one row's column value you can do thisSELECT LEFT(STUFF(Column,1,PATINDEX('%LastProcessed=%',Column + 'LastProcessed=')+14,''),PATINDEX('%[A-Za-z]%',STUFF(Column,1,PATINDEX('%LastProcessed=%',Column + 'LastProcessed=')+14,''))-1) FROM Table
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs