Ver originalDECLARE @cadena VARCHAR(100)SET @cadena='10314441402werrrrrrrrr0tg050'SELECT charindex('0',@cadena,charindex('0',@cadena,charindex('0',@cadena,1)+1)+1)