Wednesday, November 30, 2011

Get Charindex in Reverse


SELECT RIGHT(@String, CHARINDEX(' ', REVERSE(@String)) - 1)

No comments:

Post a Comment