Prueba esto :)
Código SQL:
Ver originalDECLARE @len INT,
@x INT,@y INT
DECLARE @val VARCHAR(MAX)
DECLARE @cad VARCHAR(MAX)
DECLARE @NUMBER VARCHAR(MAX)
DECLARE @cadena VARCHAR(MAX)
SET @val=''
SET @NUMBER=''
SET @cadena=''
SET @cad='libras1000'
SET @x=1
while @x<=len(@cad)
BEGIN
SELECT @val=SUBSTRING(@cad,@x,1)
IF isnumeric(@val)=1
BEGIN
SET @NUMBER=@NUMBER+@val
END
ELSE
BEGIN
SET @cadena=@cadena+@val
END
SET @x=@x+1
END
SELECT @cadena AS nombre, @NUMBER AS numero
Saludos!!