Viewing 2 posts - 1 through 2 (of 2 total)
This will delete all of the records that have more than 1 occurrence including the original.
February 2, 2016 at 12:33 pm
#1856077
Function has a bug in it. If the @AppPos is two higher than the last match, the result is incorrect.
Example
select dbo.f_firstposition('abc,def',',',3)
go
Result:4 Incorrect
One Solution - Break when you can't...
February 14, 2008 at 1:33 pm
#778573