November 9, 2006 at 10:39 am
I am creating a SP and need to replicate instrREV ( liks in vb) functionality to a sql function. in sqlserver 2000.
Basically need to search for a pattern in a string from the end..
Anybody did this before: any work arounds?
thanks,
November 9, 2006 at 11:19 am
Look in BOL at the REVERSE() and CHARINDEX() or PATINDEX() functions. What you'll want to do is do something like
CHARINDEX(@search_string, REVERSE(@to_be_searched))
November 9, 2006 at 11:28 am
Found this great UDF in case anybody else requires:
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy