I am trying to retrieve the largest number from a varchar column that includes both numbers and strings. An example of the data I\'m working with:
BoxNumber
Why not
SELECT MAX(CAST(Value AS Int)) FROM #bla WHERE ISNUMERIC(Value)=1 AND Value LIKE '%[0-9]%'
then you're only dealing with numeric strings. In this case you may not need ISNUMERIC()