Viewing 2 posts - 1 through 2 (of 2 total)
Thanks so much Mark. I ended up using a vairation. Thanks for pointing me in the "right" direction.
substring(right(i.Type,CHARINDEX('-', reverse(i.Type))), 2, 20) as Category
Terry
December 22, 2005 at 7:49 am
#611129
Thanks Mark,
I get the following error when running the above statement:
Server: Msg 536, Level 16, State 1, Line 1
Invalid length parameter passed to the substring function.
Doesn't like the -1 in...
December 21, 2005 at 11:06 am
#610915