with cte(asd,length1)
as
(
select asd=CAST('ABC'AS VARCHAR(300)),
LEN('ABCadsfasdf') --/How many times this statement will run??/
union all
select CAST(asd+'ZYXWVU'AS VARCHAR(300)) ,
LEN(asd) from cte WHERE length1 < =300
)select asd from cte
↧